diff options
| author | Rafael J. Wysocki <[email protected]> | 2025-07-10 08:43:26 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-07-15 12:54:26 +0000 |
| commit | 75b63ce2c98b41c45ee3ff14c76f27c3238bc6d2 (patch) | |
| tree | 81f29adfc431f774445d2d5fe043d10bb2f6a785 /net/unix/af_unix.c | |
| parent | Linux 6.16-rc6 (diff) | |
| download | kernel-75b63ce2c98b41c45ee3ff14c76f27c3238bc6d2.tar.gz kernel-75b63ce2c98b41c45ee3ff14c76f27c3238bc6d2.zip | |
PM: suspend: Drop a misplaced pm_restore_gfp_mask() call
The pm_restore_gfp_mask() call added by commit 12ffc3b1513e ("PM:
Restrict swap use to later in the suspend sequence") to
suspend_devices_and_enter() is done too early because it takes
place before calling dpm_resume() in dpm_resume_end() and some
swap-backing devices may not be ready at that point. Moreover,
dpm_resume_end() called subsequently in the same code path invokes
pm_restore_gfp_mask() again and calling it twice in a row is
pointless.
Drop the misplaced pm_restore_gfp_mask() call from
suspend_devices_and_enter() to address this issue.
Fixes: 12ffc3b1513e ("PM: Restrict swap use to later in the suspend sequence")
Signed-off-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Mario Limonciello <[email protected]>
Link: https://patch.msgid.link/[email protected]
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
