diff options
author | Andrea Parri (Microsoft) <parri.andrea@gmail.com> | 2020-06-17 18:46:42 +0200 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2020-06-20 09:16:19 +0000 |
commit | 775f43facfe89af605d77a9669aa311b5b95cd07 (patch) | |
tree | 00fce5f64effe18143f8b15da4e2e81f24a1e70b /drivers/hv/channel_mgmt.c | |
parent | 21d2052c7afb77e3a600090bb043913042a3102f (diff) | |
download | lwn-775f43facfe89af605d77a9669aa311b5b95cd07.tar.gz lwn-775f43facfe89af605d77a9669aa311b5b95cd07.zip |
Drivers: hv: vmbus: Remove the lock field from the vmbus_channel struct
The spinlock is (now) *not used to protect test-and-set accesses
to attributes of the structure or sc_list operations.
There is, AFAICT, a distinct lack of {WRITE,READ}_ONCE()s in the
handling of channel->state, but the changes below do not seem to
make things "worse". ;-)
Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
Link: https://lore.kernel.org/r/20200617164642.37393-9-parri.andrea@gmail.com
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'drivers/hv/channel_mgmt.c')
-rw-r--r-- | drivers/hv/channel_mgmt.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 92f8bb2077a9..591106cf58fc 100644 --- a/drivers/hv/channel_mgmt.c +++ b/drivers/hv/channel_mgmt.c @@ -317,7 +317,6 @@ static struct vmbus_channel *alloc_channel(void) return NULL; spin_lock_init(&channel->sched_lock); - spin_lock_init(&channel->lock); init_completion(&channel->rescind_event); INIT_LIST_HEAD(&channel->sc_list); |