aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorThomas Zeitlhofer <[email protected]>2021-11-23 19:18:43 +0000
committerRafael J. Wysocki <[email protected]>2021-11-24 12:45:54 +0000
commitcefcf24b4d351daf70ecd945324e200d3736821e (patch)
tree6c80bb144f690bb6c449e550d323c156c0f2ea4a /net/unix/af_unix.c
parentLinux 5.16-rc2 (diff)
downloadkernel-cefcf24b4d351daf70ecd945324e200d3736821e.tar.gz
kernel-cefcf24b4d351daf70ecd945324e200d3736821e.zip
PM: hibernate: use correct mode for swsusp_close()
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions