Staging: hv: blkvsc_drv: Cleanup spin lock usage
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 10 May 2011 14:53:48 +0000 (07:53 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 May 2011 20:38:50 +0000 (13:38 -0700)
commit6b73e4c06d326571589eebcb78efde6182330042
tree98eaa965a1907dd1bb6ac974d4c7759f44d66904
parentc56624988dabc11ae9872159401d1fca7e597f18
Staging: hv: blkvsc_drv: Cleanup spin lock usage

This spin lock is potentially acquired from interrupt context.
Ensure that the interrupts are blocked whenever the lock is held.
The current code was not consistent with regards to blocking
interrupts - the same lock would be acquired without blocking
interrupts in some instance while the interrupts would be blocked
in other instances. Fix this potential deadlock problem.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/blkvsc_drv.c