From: K. Y. Srinivasan Date: Fri, 29 Aug 2014 01:29:52 +0000 (-0700) Subject: Drivers: hv: vmbus: Cleanup hv_post_message() X-Git-Tag: fixes-for-v3.18-merge-window~11^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b29ef3546aecb253a5552b198cef23750d56e1e4;p=pandora-kernel.git Drivers: hv: vmbus: Cleanup hv_post_message() Minimize failures in this function by pre-allocating the buffer for posting messages. The hypercall for posting the message can fail for a number of reasons: 1. Transient resource related issues 2. Buffer alignment 3. Buffer cannot span a page boundry We address issues 2 and 3 by preallocating a per-cpu page for the buffer. Transient resource related failures are handled by retrying by the callers of this function. This patch is based on the investigation done by Dexuan Cui . I would like to thank Sitsofe Wheeler for reporting the issue and helping in debuggging. Signed-off-by: K. Y. Srinivasan Reported-by: Sitsofe Wheeler Cc: Tested-by: Sitsofe Wheeler Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed