Skip to content

PM: hibernate: Drain trailing zero pages on userspace restore

Alberto Garcia linux-pm 2 versions Applied

Status from this message: Applied as 7.0-rc material, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesApplied
  2. v11 patch 4 repliesSuperseded

Changes in v2 from the cover letter

- The extra snapshot_write_next() call happens now at the beginning of snapshot_write_finalize(), but only when handle->cur is in the data page region.

- We return -ENODATA if snapshot_write_next() returns > 0 (indicating that the kernel was expecting another page).

- A second patch changes the userspace restore code to return -ENODATA when snapshot_image_loaded() fails.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2PM: hibernate: Drain trailing zero pages on userspace restorekernel/power/snapshot.c+11 -02 replies
2/2PM: hibernate: return -ENODATA if the snapshot image is not loadedkernel/power/user.c+5 -22 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBrian Geffon
1/2A-b
2/2A-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] PM: hibernate: Drain trailing zero pages on userspace restore

Hi,

Here's v2 of the patch.

Changes from v1:

- The extra snapshot_write_next() call happens now at the beginning of snapshot_write_finalize(), but only when handle->cur is in the data page region.

- We return -ENODATA if snapshot_write_next() returns > 0 (indicating that the kernel was expecting another page).

- A second patch changes the userspace restore code to return -ENODATA when snapshot_image_loaded() fails.

Regards,

Berto

Alberto Garcia (2):
PM: hibernate: Drain trailing zero pages on userspace restore
PM: hibernate: return -ENODATA if the snapshot image is not loaded

 kernel/power/snapshot.c | 11 +++++++++++
 kernel/power/user.c     |  7 +++++--
 2 files changed, 16 insertions(+), 2 deletions(-)
Signature · 1 line
2.47.3