]> git.baikalelectronics.ru Git - kernel.git/commit
Drivers: hv: vmbus: Remove the lock field from the vmbus_channel struct
authorAndrea Parri (Microsoft) <parri.andrea@gmail.com>
Wed, 17 Jun 2020 16:46:42 +0000 (18:46 +0200)
committerWei Liu <wei.liu@kernel.org>
Sat, 20 Jun 2020 09:16:19 +0000 (09:16 +0000)
commitb550b84e129b38fd4b0704aa27da4f68db1836c1
tree00fce5f64effe18143f8b15da4e2e81f24a1e70b
parent652ea0411a55655bde160d4d52279e2f7b73015e
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>
drivers/hv/channel.c
drivers/hv/channel_mgmt.c
include/linux/hyperv.h