summaryrefslogtreecommitdiffstats
path: root/drivers/hv/channel_mgmt.c
diff options
context:
space:
mode:
authorStephen Hemminger2017-05-18 18:18:12 +0200
committerMartin K. Petersen2017-06-13 02:48:05 +0200
commit2371cd90abe3fa1b88e15111abf2cc0a26db6e52 (patch)
tree4f1ea825a44b886bd7d86b7f63b09e11f59c7d29 /drivers/hv/channel_mgmt.c
parentscsi: storvsc: use in place iterator function (diff)
downloadkernel-qcow2-linux-2371cd90abe3fa1b88e15111abf2cc0a26db6e52.tar.gz
kernel-qcow2-linux-2371cd90abe3fa1b88e15111abf2cc0a26db6e52.tar.xz
kernel-qcow2-linux-2371cd90abe3fa1b88e15111abf2cc0a26db6e52.zip
scsi: storvsc: remove unnecessary channel inbound lock
In storvsc driver, inbound messages do not go through inbound lock. The only effect of this lock was is to provide a barrier for connect and remove logic. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/hv/channel_mgmt.c')
-rw-r--r--drivers/hv/channel_mgmt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c
index 735f9363f2e4..685572bae1f0 100644
--- a/drivers/hv/channel_mgmt.c
+++ b/drivers/hv/channel_mgmt.c
@@ -332,7 +332,6 @@ static struct vmbus_channel *alloc_channel(void)
if (!channel)
return NULL;
- spin_lock_init(&channel->inbound_lock);
spin_lock_init(&channel->lock);
INIT_LIST_HEAD(&channel->sc_list);