]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/hyperv.h
Drivers: hv: Eliminate the channel spinlock in the callback path
authorK. Y. Srinivasan <kys@microsoft.com>
Wed, 9 Apr 2014 01:45:53 +0000 (18:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 May 2014 23:24:26 +0000 (19:24 -0400)
commitd3ba720dd58cdf6630fee4b89482c465d5ad0d0f
tree03ea0aba6f0509bf7c501dee9ae6e931634f3c4b
parente4d8270e604c3202131bac607969605ac397b893
Drivers: hv: Eliminate the channel spinlock in the callback path

By ensuring that we set the callback handler to NULL in the channel close
path on the same CPU that the channel is bound to, we can eliminate this lock
acquisition and release in a performance critical path.

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.c
drivers/hv/channel_mgmt.c
drivers/hv/connection.c
include/linux/hyperv.h