summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorYoungjun Park <youngjun.park@lge.com>2026-03-22 21:05:28 +0900
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-03-23 13:54:53 +0100
commita8d51efb5929ae308895455a3e496b5eca2cd143 (patch)
treef6673b0349088e200bbee090dc36f8646ace27b4 /scripts/basic
parent734eba62cd32cb9ceffa09e57cdc03d761528525 (diff)
PM: sleep: Drop spurious WARN_ON() from pm_restore_gfp_mask()
Commit 35e4a69b2003f ("PM: sleep: Allow pm_restrict_gfp_mask() stacking") introduced refcount-based GFP mask management that warns when pm_restore_gfp_mask() is called with saved_gfp_count == 0. Some hibernation paths call pm_restore_gfp_mask() defensively where the GFP mask may or may not be restricted depending on the execution path. For example, the uswsusp interface invokes it in SNAPSHOT_CREATE_IMAGE, SNAPSHOT_UNFREEZE, and snapshot_release(). Before the stacking change this was a silent no-op; it now triggers a spurious WARNING. Remove the WARN_ON() wrapper from the !saved_gfp_count check while retaining the check itself, so that defensive calls remain harmless without producing false warnings. Fixes: 35e4a69b2003f ("PM: sleep: Allow pm_restrict_gfp_mask() stacking") Signed-off-by: Youngjun Park <youngjun.park@lge.com> [ rjw: Subject tweak ] Link: https://patch.msgid.link/20260322120528.750178-1-youngjun.park@lge.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions