Re: [RFC PATCH v2 0/4] mm/swap: reserve swap areas for deliberate offload

From
Christoph Hellwig <hch@infradead.org>
Date
2026-09-28 05:19:11
Also in
cgroups, intel-gfx, linux-arm-kernel, linux-kselftest, linux-man, linux-mm, linux-pm, lkml
Reply to
Matthias Goergens, 2026-09-26
On Sat, Sep 26, 2026 at 12:55:13PM +0800, Matthias Goergens wrote:
This RFC adds offload-only swap areas for deliberate cold-page offload to
backends unsuitable for pressure reclaim. ZFS zvol swap has documented
deadlocks under memory pressure [3]; compressed swap is another target
because writes may need memory despite free logical slots.
Out of tree code not matter.  Out of tree that violates the linux
license terms even less.

Either way block devices must be safe to be called from paging paths,
not just for swap but also for file system based paging.  So this is a
bug in the implementation, and not something worked around in the swap
code.
Thread (14 messages) 14 messages, 6 authors, last reply 2026-10-04
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help