diff options
author | Dexuan Cui <decui@microsoft.com> | 2019-09-06 01:01:21 +0200 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2019-09-06 20:52:44 +0200 |
commit | b307b38962eb0f22d1aa6dcf53cb7d3c2ed5eec7 (patch) | |
tree | 38f55d99f6960a7738cb8af94ce4837de60b2444 /drivers/hwmon | |
parent | Drivers: hv: vmbus: Clean up hv_sock channels by force upon suspend (diff) | |
download | linux-b307b38962eb0f22d1aa6dcf53cb7d3c2ed5eec7.tar.xz linux-b307b38962eb0f22d1aa6dcf53cb7d3c2ed5eec7.zip |
Drivers: hv: vmbus: Suspend after cleaning up hv_sock and sub channels
Before suspend, Linux must make sure all the hv_sock channels have been
properly cleaned up, because a hv_sock connection can not persist across
hibernation, and the user-space app must be properly notified of the
state change of the connection.
Before suspend, Linux also must make sure all the sub-channels have been
destroyed, i.e. the related channel structs of the sub-channels must be
properly removed, otherwise they would cause a conflict when the
sub-channels are recreated upon resume.
Add a counter to track such channels, and vmbus_bus_suspend() should wait
for the counter to drop to zero.
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions