Skip to content

swsusp: fix breakage with swap on LVM

Rafael J. Wysocki lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1swsusp: fix breakage with swap on LVMkernel/power/swsusp.c+1 -30 replies
1/1swsusp: fix breakage with swap on LVMinclude/linux/swap.h kernel/power/swap.c mm/swapfile.c+20 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] swsusp: fix breakage with swap on LVM

Hi,

In the following two replies to this message there are two versions of the same fix, one of which applies to 2.6.16-rc3 and the second to the recent -mm.

The fix is needed to restore the compatibility with the older code that allowed to suspend even if the kernel command line didn't contain the "resume=" argument. This feature is necessary so that swsusp can work in the default Fedora setup where the swap partition is on an LVM.

I consider the first patch, against 2.6.16-rc3, as an urgent fix that should go in 2.6.16, if possible. It has been tested by Dave and evidently fixes the Fedora issue. Unfortunately it doesn't apply to the recent -mm, because in -mm the code in question is split between mm/swapfile.c and kernel/power/swap.c, so the other patch is needed.

Please apply.

Greetings,
Rafael