diff options
author | K. Y. Srinivasan | 2011-08-27 20:31:33 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-08-29 20:05:30 +0200 |
commit | dad76bf73fc20b42d020fe5a93dbe4b4868e7681 (patch) | |
tree | d1ce6dee63e86173b97f27796d515f31d9fdc03d /drivers/staging/hv/vmbus_drv.c | |
parent | Staging: hv: vmbus: Check before invoking the channel callback (diff) | |
download | kernel-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