Files
twx-linux/kernel
Thomas Zeitlhofer 6dc28547c1 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-08 08:45:03 +01:00
..
2020-09-23 08:46:14 +02:00
…
…
…
2019-11-28 18:28:55 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
2021-02-10 09:09:25 +01:00
2020-04-02 17:20:26 +02:00
…
…
…
…
…
…
…
…
…
2020-01-12 11:24:12 +01:00
…
…
…
…
…
…
…