Drivers: hv: vmbus: decrease num_sc on subchannel removal
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 7 May 2015 00:47:44 +0000 (17:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 19:19:00 +0000 (12:19 -0700)
commit357e836a609812ab28fb56df28555295191bd330
tree34d4ec7dfefb5e72d7a2d2ff4be391cde0863b34
parentfea844a2b0edd6540d5cde2cd54a8a3c86e9c53f
Drivers: hv: vmbus: decrease num_sc on subchannel removal

It is unlikely that that host will ask us to close only one subchannel for a
device but let's be consistent. Do both num_sc++ and num_sc-- with
channel->lock to be on the safe side.

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
This page took 0.02434 seconds and 5 git commands to generate.