android_kernel_motorola_sm6225/drivers/hv
Michael Kelley 1dcf055a46 Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload
[ Upstream commit 911e1987efc8f3e6445955fbae7f54b428b92bd3 ]

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: 415719160d ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-23 12:10:59 +02:00
..
channel.c vmbus: keep pointer to ring buffer page 2019-11-20 18:47:31 +01:00
channel_mgmt.c Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload 2020-09-23 12:10:59 +02:00
connection.c Drivers: hv: vmbus: Offload the handling of channels to two workqueues 2018-12-13 09:16:22 +01:00
hv.c Drivers: hv: vmbus: Fix synic per-cpu context initialization 2019-11-20 18:46:31 +01:00
hv_balloon.c hv_balloon: Balloon up according to request page number 2020-02-11 04:34:01 -08:00
hv_fcopy.c
hv_kvp.c Drivers: hv: kvp: Fix the recent regression caused by incorrect clean-up 2019-09-16 08:21:54 +02:00
hv_snapshot.c
hv_trace.c
hv_trace.h
hv_trace_balloon.h
hv_util.c use the new async probing feature for the hyperv drivers 2018-07-03 13:02:28 +02:00
hv_utils_transport.c
hv_utils_transport.h
hyperv_vmbus.h Drivers: hv: vmbus: Offload the handling of channels to two workqueues 2018-12-13 09:16:22 +01:00
Kconfig x86, hyperv: remove PCI dependency 2019-01-13 09:51:00 +01:00
Makefile
ring_buffer.c Drivers: hv: vmbus: Check for ring when getting debug info 2019-01-31 08:14:36 +01:00
vmbus_drv.c Drivers: hv: vmbus: Ignore CHANNELMSG_TL_CONNECT_RESULT(23) 2020-08-11 15:32:33 +02:00