]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Drivers: hv: vmbus: move init_vp_index() call to vmbus_process_offer()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 7 May 2015 00:47:45 +0000 (17:47 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 26 Feb 2016 02:28:44 +0000 (18:28 -0800)
commitc2c4163a8021feb5c9559758b8ad74d420589057
tree58dfd854f2bc25335a6123d366db251c38d273b3
parente29d044059c0bcd4541b0b4489fe2ea0aad0e42b
Drivers: hv: vmbus: move init_vp_index() call to vmbus_process_offer()

We need to call init_vp_index() after we added the channel to the appropriate
list (global or subchannel) to be able to use this information when assigning
the channel to the particular vcpu. To do so we need to move a couple of
functions around. The only real change is the init_vp_index() call. This is a
small refactoring without a functional change.

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 f38e7dd72337d83cced910cfbf6016475ef85bf7)

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