PM: hibernate: Turn snapshot_test into global variable
authorChen Yu <yu.c.chen@intel.com>
Fri, 14 Apr 2023 12:10:26 +0000 (20:10 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 27 Apr 2023 17:00:28 +0000 (19:00 +0200)
commit08169a162f97819d3e5b4a342bb9cf5137787154
treefd6163fecc83a5bcb27af62bb5fe76b1315ba592
parent0cfd8703e7da687924371e9bc77a025bdeba9637
PM: hibernate: Turn snapshot_test into global variable

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: Pavankumar Kondeti <quic_pkondeti@quicinc.com>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/hibernate.c
kernel/power/power.h