]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: hv: use sync_bitops when interacting with the hypervisor
authorOlaf Hering <olaf@aepfle.de>
Mon, 21 Mar 2011 13:41:37 +0000 (14:41 +0100)
committerAndi Kleen <ak@linux.intel.com>
Thu, 28 Apr 2011 15:20:50 +0000 (08:20 -0700)
commitdb9fb5db749de2109d9312929c6e2f70b2055f89
tree84ecde1ba7fa677ef9bf0a516fabdf823bab9194
parentfd5d4740a543f457f787a7760a309350a49bb8c6
staging: hv: use sync_bitops when interacting with the hypervisor

commit 22356585712d1ff08fbfed152edd8b386873b238 upstream.

Locking is required when tweaking bits located in a shared page, use the
sync_ version of bitops. Without this change vmbus_on_event() will miss
events and as a result, vmbus_isr() will not schedule the receive tasklet.

[Backported to 2.6.32 stable kernel by Haiyang Zhang <haiyangz@microsoft.com>]

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
Acked-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/staging/hv/channel.c
drivers/staging/hv/connection.c
drivers/staging/hv/vmbus.c
drivers/staging/hv/vmbus_private.h