]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Drivers: hv: vmbus: distribute subchannels among all vcpus
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 7 May 2015 00:47:46 +0000 (17:47 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 26 Feb 2016 02:28:49 +0000 (18:28 -0800)
commitf6200e8df829d00ebdbb0c0f4339e9c73b69d40c
tree1232259f696714d438c7b7fef0976b441c0f19de
parent010864e00b2382d8fb7b96d4141c5be093a3c268
Drivers: hv: vmbus: distribute subchannels among all vcpus

Primary channels are distributed evenly across all vcpus we have. When the host
asks us to create subchannels it usually makes us num_cpus-1 offers and we are
supposed to distribute the work evenly among the channel itself and all its
subchannels. Make sure they are all assigned to different vcpus.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ce59fec836a9b4dc51cbcf9cb245b59e0ef53bea)

Orabug: 21886720
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/hv/channel_mgmt.c