Drivers: hv: vm_bus: Handle vmbus rescind calls after vmbus is suspended
authorShradha Gupta <shradhagupta@linux.microsoft.com>
Mon, 11 Jul 2022 04:11:47 +0000 (21:11 -0700)
committerWei Liu <wei.liu@kernel.org>
Mon, 11 Jul 2022 18:53:42 +0000 (18:53 +0000)
commit52be93558a9b32f5294750c1394d81e31fe11d6d
tree867b177769257c5f8d4dc3be4685e90694d22918
parent32346491ddf24599decca06190ebca03ff9de7f8
Drivers: hv: vm_bus: Handle vmbus rescind calls after vmbus is suspended

Add a flag to indicate that the vmbus is suspended so we should ignore
any offer message. Add a new work_queue for rescind msg, so we could drain
it along with other offer work_queues upon suspension.
It was observed that in some hibernation related scenario testing, after
vmbus_bus_suspend() we get rescind offer message for the vmbus. This would
lead to processing of a rescind message for a channel that has already been
suspended.

Signed-off-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20220711041147.GA5569@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/connection.c
drivers/hv/hyperv_vmbus.h
drivers/hv/vmbus_drv.c