]> git.baikalelectronics.ru Git - kernel.git/commit
vmbus: don't acquire the mutex in vmbus_hvsock_device_unregister()
authorDexuan Cui <decui@microsoft.com>
Fri, 22 Sep 2017 06:41:47 +0000 (23:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Sep 2017 08:29:54 +0000 (10:29 +0200)
commit3b3bcd573e254870fdd55ada4196ed54e2074ce7
tree1ef74e89bccee866cb126f68395ed4042cee1b8a
parentfcfe7cc380c83b14d3f3ba153cde606118db56eb
vmbus: don't acquire the mutex in vmbus_hvsock_device_unregister()

Due to commit 264bca7f36fd ("Drivers: hv: vmbus: Fix rescind handling"),
we need this patch to resolve the below deadlock:

after we get the mutex in vmbus_hvsock_device_unregister() and call
vmbus_device_unregister() -> device_unregister() -> ... -> device_release()
-> vmbus_device_release(), we'll get a deadlock, because
vmbus_device_release() tries to get the same mutex.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: stable@vger.kernel.org (4.13 and above)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel_mgmt.c