]> git.baikalelectronics.ru Git - kernel.git/commit
Drivers: hv: vmbus: Remove unnecessary channel->lock critical sections (sc_list readers)
authorAndrea Parri (Microsoft) <parri.andrea@gmail.com>
Wed, 17 Jun 2020 16:46:38 +0000 (18:46 +0200)
committerWei Liu <wei.liu@kernel.org>
Fri, 19 Jun 2020 15:38:23 +0000 (15:38 +0000)
commitda4d7f40aa1d8860c05b00225b2cb011d5816ebe
treec1bc8d15f15276482def26925a7d44090244a3c1
parent877fb756096e8bd04d85d509189488121ee1073b
Drivers: hv: vmbus: Remove unnecessary channel->lock critical sections (sc_list readers)

Additions/deletions to/from sc_list (as well as modifications of
target_cpu(s)) are protected by channel_mutex, which hv_synic_cleanup()
and vmbus_bus_suspend() own for the duration of the channel->lock
critical section in question.

Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
Link: https://lore.kernel.org/r/20200617164642.37393-5-parri.andrea@gmail.com
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/hv.c
drivers/hv/vmbus_drv.c