summaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/vmbus_drv.c
diff options
context:
space:
mode:
authorK. Y. Srinivasan2011-08-27 20:31:33 +0200
committerGreg Kroah-Hartman2011-08-29 20:05:30 +0200
commitdad76bf73fc20b42d020fe5a93dbe4b4868e7681 (patch)
treed1ce6dee63e86173b97f27796d515f31d9fdc03d /drivers/staging/hv/vmbus_drv.c
parentStaging: hv: vmbus: Check before invoking the channel callback (diff)
downloadkernel-qcow2-linux-dad76bf73fc20b42d020fe5a93dbe4b4868e7681.tar.gz
kernel-qcow2-linux-dad76bf73fc20b42d020fe5a93dbe4b4868e7681.tar.xz
kernel-qcow2-linux-dad76bf73fc20b42d020fe5a93dbe4b4868e7681.zip
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 <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/vmbus_drv.c')
0 files changed, 0 insertions, 0 deletions