Skip to content

Fix test_resume failure by openning swap device non-exclusively

Chen Yu linux-pm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 5 repliesSuperseded

Changes in v3 from the cover letter

Adjust the initialization of fmode and refine the commit message per Rafael's suggestion.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PM: hibernate: Turn snapshot_test into global variablekernel/power/hibernate.c kernel/power/power.h+7 -10 replies
2/2PM: hibernate: Do not get block device exclusively in test_resume modekernel/power/hibernate.c kernel/power/swap.c+12 -40 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchPavankumar KondetiWendy Wang
1/2
2/2T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] Fix test_resume failure by openning swap device non-exclusively

test_resume does not work in current kernel when using swapfile for hibernation. This is because the swap device should be openned non-exclusively in test_resume mode.

Patch 1 is a preparation to turn snapshot_test into a global variable. Patch 2 is the fix to open swap device non-exclusively only for test_resume mode.

Change since v2:
Adjust the initialization of fmode and refine the commit message per Rafael's suggestion.

Change since v1:
Turn snapshot_test into global variable and do not introduce parameters for swsusp_check() nor load_image_and_restore().

Chen Yu (2):
PM: hibernate: Turn snapshot_test into global variable
PM: hibernate: Do not get block device exclusively in test_resume mode

 kernel/power/hibernate.c | 15 ++++++++++++---
 kernel/power/power.h     |  1 +
 kernel/power/swap.c      |  8 ++++++--
 3 files changed, 19 insertions(+), 5 deletions(-)
Signature · 1 line
2.25.1