diff options
| author | Andrea Parri (Microsoft) <[email protected]> | 2020-06-17 18:46:42 +0200 |
|---|---|---|
| committer | Wei Liu <[email protected]> | 2020-06-20 09:16:19 +0000 |
| commit | 775f43facfe89af605d77a9669aa311b5b95cd07 (patch) | |
| tree | 00fce5f64effe18143f8b15da4e2e81f24a1e70b /include/linux | |
| parent | 21d2052c7afb77e3a600090bb043913042a3102f (diff) | |
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) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Michael Kelley <[email protected]>
Signed-off-by: Wei Liu <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hyperv.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 690394b79d72..38100e80360a 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -841,12 +841,6 @@ struct vmbus_channel { void (*chn_rescind_callback)(struct vmbus_channel *channel); /* - * The spinlock to protect the structure. It is being used to protect - * test-and-set access to various attributes of the structure as well - * as all sc_list operations. - */ - spinlock_t lock; - /* * All Sub-channels of a primary channel are linked here. */ struct list_head sc_list; |