]> git.baikalelectronics.ru Git - kernel.git/commit
Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload
authorMichael Kelley <mikelley@microsoft.com>
Sun, 13 Sep 2020 19:47:29 +0000 (12:47 -0700)
committerWei Liu <wei.liu@kernel.org>
Mon, 14 Sep 2020 11:42:33 +0000 (11:42 +0000)
commit2d51c21cb7d1a046755e0f09578eaaec7a8efd78
treef513da7f15a88350919e084894fe41f00b5f3991
parent2853bc6318b6967b80a36cb85c80011a90bdb9bd
Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload

vmbus_wait_for_unload() looks for a CHANNELMSG_UNLOAD_RESPONSE message
coming from Hyper-V.  But if the message isn't found for some reason,
the panic path gets hung forever.  Add a timeout of 10 seconds to prevent
this.

Fixes: 511509097273 ("Drivers: hv: vmbus: avoid scheduling in interrupt context in vmbus_initiate_unload()")
Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Link: https://lore.kernel.org/r/1600026449-23651-1-git-send-email-mikelley@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/channel_mgmt.c