Skip to content
Commit 208ba216 authored by Chen Yu's avatar Chen Yu Committed by Greg Kroah-Hartman
Browse files

PM: hibernate: Turn snapshot_test into global variable



[ Upstream commit 08169a16 ]

There is need to check snapshot_test and open block device
in different mode, so as to avoid the race condition.

No functional changes intended.

Suggested-by: default avatarPavankumar Kondeti <quic_pkondeti@quicinc.com>
Signed-off-by: default avatarChen Yu <yu.c.chen@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Stable-dep-of: 5904de0d ("PM: hibernate: Do not get block device exclusively in test_resume mode")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fc3153a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment