PM: hibernate: Drain trailing zero pages on userspace restore
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
- v2 Latest2 patches 4 repliesApplied
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | PM: hibernate: Drain trailing zero pages on userspace restorekernel/ | +11 | 2 replies | |
| 2/2 | PM: hibernate: return -ENODATA if the snapshot image is not loadedkernel/ | +5 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Brian Geffon |
|---|---|
| 1/2 | A-b |
| 2/2 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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