]> git.baikalelectronics.ru Git - kernel.git/commit
Drivers: hv: vmbus: Implement per-CPU mapping of relid to channel
authorK. Y. Srinivasan <kys@microsoft.com>
Wed, 9 Apr 2014 01:45:54 +0000 (18:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 May 2014 23:24:26 +0000 (19:24 -0400)
commit9a850c55900dfa35d4a117ce25894405c2ab9214
treebcc8f07bbd9365e0a270c85af0e50ce3e1682987
parenta486d346f87a18a1bf423aa48f791de3ae22e00a
Drivers: hv: vmbus: Implement per-CPU mapping of relid to channel

Currently the mapping of the relID to channel is done under the protection of a
single spin lock. Starting with ws2012, each channel is bound to a specific VCPU
in the guest. Use this binding to eliminate the spin lock by setting up
per-cpu state for mapping relId to the channel.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel_mgmt.c
drivers/hv/connection.c
drivers/hv/hv.c
drivers/hv/hyperv_vmbus.h
include/linux/hyperv.h