Skip to content

Improve swap page error handling

Richard Purdie lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4swap: Split up try_to_unuse()mm/swapfile.c+170 -1510 replies
2/4swap: Add ability to mark swap pages badinclude/linux/swap.h mm/shmem.c mm/swap_state.c +1 more+42 -160 replies
3/4swap: Add try_to_unuse_page_entry()include/linux/swap.h mm/swapfile.c+40 -130 replies
4/4swap: Catch pages with errors and mark as badmm/page_io.c mm/vmscan.c+9 -30 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/4] Improve swap page error handling

Improve the error handling when writes fail to a swap page.

Currently, the kernel will repeatedly retry the write which is unlikely to ever succeed. Instead we allow the pages to be unused and then marked as bad at which prevents reuse. It should hopefully be suitable for testing in -mm.

These patches are a based on a patch by Nick Piggin and some of my own patches/bugfixes as discussed on LKML.

Richard