From: K. Y. Srinivasan Date: Sat, 27 Aug 2011 18:31:33 +0000 (-0700) Subject: Staging: hv: vmbus: Properly deal with de-registering channel callback X-Git-Tag: v3.2-rc1~169^2^2~829 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dad76bf73fc20b42d020fe5a93dbe4b4868e7681;p=pandora-kernel.git Staging: hv: vmbus: Properly deal with de-registering channel callback Ensure that we correctly handle racing invocations of the channel callback when the channel is being closed. We do this using the channel's inbound_lock. A side-effect of this strategy is that we avoid repeatedly picking up this lock as we drain the inbound ring-buffer. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed