]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 19:19:00 +0000 (12:19 -0700)
commitce59fec836a9b4dc51cbcf9cb245b59e0ef53bea
tree2927aa4419cc9de7cc50b8f298b75e6dfbf7c40a
parentf38e7dd72337d83cced910cfbf6016475ef85bf7
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>
drivers/hv/channel_mgmt.c