History

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". ;-)

Andrea Parri (Microsoft) committed 6 years ago

Commit 775f43f1 parent 21d20523 files · +1 −12Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/hyperv.h+0−6
@@ -840,12 +840,6 @@ struct vmbus_channel { · 839 unmodified lines
840 */840 */
841 void (*chn_rescind_callback)(struct vmbus_channel *channel);841 void (*chn_rescind_callback)(struct vmbus_channel *channel);
842 842
843 /*
844 * The spinlock to protect the structure. It is being used to protect
845 * test-and-set access to various attributes of the structure as well
846 * as all sc_list operations.
847 */
848 spinlock_t lock;
849 /*843 /*
850 * All Sub-channels of a primary channel are linked here.844 * All Sub-channels of a primary channel are linked here.
851 */845 */