]> git.baikalelectronics.ru Git - kernel.git/commit
Drivers: hv: vmbus: Remove the target_vp field from the vmbus_channel struct
authorAndrea Parri (Microsoft) <parri.andrea@gmail.com>
Wed, 17 Jun 2020 16:46:35 +0000 (18:46 +0200)
committerWei Liu <wei.liu@kernel.org>
Fri, 19 Jun 2020 15:38:10 +0000 (15:38 +0000)
commit14423544a48c2e974500919539072323548f1c6d
tree574d61c2599a3b8b5cb4cbc835f1cf96ff2af7c6
parent74a27a5f5a99e6b5adfd790053b6cccac3270c76
Drivers: hv: vmbus: Remove the target_vp field from the vmbus_channel struct

The field is read only in __vmbus_open() and it is already stored twice
(after a call to hv_cpu_number_to_vp_number()) in target_cpu_store() and
init_vp_index(); there is no need to "cache" its value in the channel
data structure.

Suggested-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
Link: https://lore.kernel.org/r/20200617164642.37393-2-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
drivers/hv/vmbus_drv.c
include/linux/hyperv.h