mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
21d2052c7a
commit
775f43facf
3 changed files with 1 additions and 12 deletions
|
@ -840,12 +840,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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue