linux/kernel/power
Thomas Zeitlhofer c83f27576c PM: hibernate: use correct mode for swsusp_close()
[ Upstream commit cefcf24b4d ]

Commit 39fbef4b0f ("PM: hibernate: Get block device exclusively in
swsusp_check()") changed the opening mode of the block device to
(FMODE_READ | FMODE_EXCL).

In the corresponding calls to swsusp_close(), the mode is still just
FMODE_READ which triggers the warning in blkdev_flush_mapping() on
resume from hibernate.

So, use the mode (FMODE_READ | FMODE_EXCL) also when closing the
device.

Fixes: 39fbef4b0f ("PM: hibernate: Get block device exclusively in swsusp_check()")
Signed-off-by: Thomas Zeitlhofer <thomas.zeitlhofer+lkml@ze-it.at>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-01 09:04:51 +01:00
..
autosleep.c
console.c
energy_model.c PM: EM: Fix inefficient states detection 2021-11-18 19:16:30 +01:00
hibernate.c PM: hibernate: use correct mode for swsusp_close() 2021-12-01 09:04:51 +01:00
Kconfig
main.c PM: sleep: unmark 'state' functions as kernel-doc 2021-08-16 18:49:39 +02:00
Makefile
power.h
poweroff.c
process.c
qos.c
snapshot.c PM: hibernate: remove leading spaces before tabs 2021-06-11 18:52:05 +02:00
suspend_test.c PM: sleep: check RTC features instead of ops in suspend_test 2021-08-04 20:23:05 +02:00
suspend.c PM: sleep: s2idle: Replace deprecated CPU-hotplug functions 2021-08-04 20:18:13 +02:00
swap.c PM: hibernate: fix sparse warnings 2021-11-18 19:16:38 +01:00
user.c
wakelock.c