public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] PM: hibernate: Drain trailing zero pages on userspace restore
@ 2026-03-09 17:39 Alberto Garcia
  2026-03-09 17:39 ` [PATCH v2 1/2] " Alberto Garcia
  2026-03-09 17:39 ` [PATCH v2 2/2] PM: hibernate: return -ENODATA if the snapshot image is not loaded Alberto Garcia
  0 siblings, 2 replies; 7+ messages in thread
From: Alberto Garcia @ 2026-03-09 17:39 UTC (permalink / raw)
  To: Rafael J . Wysocki
  Cc: Len Brown, Pavel Machek, Brian Geffon, linux-pm, Alberto Garcia

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(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-03-20 19:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-09 17:39 [PATCH v2 0/2] PM: hibernate: Drain trailing zero pages on userspace restore Alberto Garcia
2026-03-09 17:39 ` [PATCH v2 1/2] " Alberto Garcia
2026-03-09 17:44   ` Brian Geffon
2026-03-20 18:54     ` Rafael J. Wysocki
2026-03-09 17:39 ` [PATCH v2 2/2] PM: hibernate: return -ENODATA if the snapshot image is not loaded Alberto Garcia
2026-03-09 17:45   ` Brian Geffon
2026-03-20 19:00     ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox