]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
Drivers: hv: vmbus: Eliminate the spin lock on the read path
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 28 Jan 2016 06:29:44 +0000 (22:29 -0800)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:29:02 +0000 (10:29 +0100)
commitebade2fc85f59191823de7436217ff36abecbb6d
treec268246f978992f9b203cf3ef453918454162e88
parent3173614d7c4f6425ffd9a9d93526c141fc81d4f1
Drivers: hv: vmbus: Eliminate the spin lock on the read path

BugLink: http://bugs.launchpad.net/bugs/1541585
The function hv_ringbuffer_read() is called always on a pre-assigned
CPU. Each chnnel is bound to a specific CPU and this function is
always called on the CPU the channel is bound. There is no need to
acquire the spin lock; get rid of this overhead.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 3eba9a77d5fc2cee486a16fff435686f024f61cf)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/hv/ring_buffer.c