]> 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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Apr 2011 23:52:51 +0000 (16:52 -0700)
commitc86ee72bdd6f7140c4c68db87a1111e00cfdde04
treeec5b0d7a0247789c209d9248d2b85d9a631dd565
parentb98b7a3bc62d1e16bb3ab91aa053362c3f500830
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>
drivers/staging/hv/Channel.c
drivers/staging/hv/Connection.c
drivers/staging/hv/Vmbus.c
drivers/staging/hv/VmbusPrivate.h