summaryrefslogtreecommitdiffstats
path: root/drivers/hv/hyperv_vmbus.h
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2015-12-15 01:01:51 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-15 04:15:05 +0100
commitd6f591e339d23f434efda11917da511870891472 (patch)
tree031bf2d9e6c519789fe7413d75587c87a00d334c /drivers/hv/hyperv_vmbus.h
parentDrivers: hv: vmbus: release relid on error in vmbus_process_offer() (diff)
downloadlinux-d6f591e339d23f434efda11917da511870891472.tar.xz
linux-d6f591e339d23f434efda11917da511870891472.zip
Drivers: hv: vmbus: channge vmbus_connection.channel_lock to mutex
spinlock is unnecessary here. mutex is enough. Signed-off-by: Dexuan Cui <decui@microsoft.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/hyperv_vmbus.h')
-rw-r--r--drivers/hv/hyperv_vmbus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h
index 9beeb148797f..4d67e984ac4f 100644
--- a/drivers/hv/hyperv_vmbus.h
+++ b/drivers/hv/hyperv_vmbus.h
@@ -683,7 +683,7 @@ struct vmbus_connection {
/* List of channels */
struct list_head chn_list;
- spinlock_t channel_lock;
+ struct mutex channel_mutex;
struct workqueue_struct *work_queue;
};