diff options
author | Thomas Zeitlhofer <thomas.zeitlhofer+lkml@ze-it.at> | 2021-11-23 20:18:43 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-08 08:45:03 +0100 |
commit | 6dc28547c19e43dea7e39aeb4bb97ce4bbc327d9 (patch) | |
tree | 84a703f7fc7d958cd2fe15c93309c5f4850afe17 /fs/orangefs/acl.c | |
parent | db80f49e04e3a114374eab8b066ab74b2383cf7d (diff) | |
download | linux-stable-6dc28547c19e43dea7e39aeb4bb97ce4bbc327d9.tar.gz linux-stable-6dc28547c19e43dea7e39aeb4bb97ce4bbc327d9.tar.bz2 linux-stable-6dc28547c19e43dea7e39aeb4bb97ce4bbc327d9.zip |
PM: hibernate: use correct mode for swsusp_close()
[ Upstream commit cefcf24b4d351daf70ecd945324e200d3736821e ]
Commit 39fbef4b0f77 ("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: 39fbef4b0f77 ("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>
Diffstat (limited to 'fs/orangefs/acl.c')
0 files changed, 0 insertions, 0 deletions