]> Gentwo Git Trees - linux/.git/commit
zram: permit reclaim in zstd custom allocator
authorSergey Senozhatsky <senozhatsky@chromium.org>
Fri, 21 Feb 2025 22:25:45 +0000 (07:25 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 23 Feb 2025 06:25:57 +0000 (22:25 -0800)
commit6f88db0669f0f9c2813520b65ec950f3db1127c2
tree2d9299c368c881014671bafe87a731c3ea2c8766
parent84706ae348b017bf08910b68800200ee26a746da
zram: permit reclaim in zstd custom allocator

When configured with pre-trained compression/decompression dictionary
support, zstd requires custom memory allocator, which it calls internally
from compression()/decompression() routines.  That means allocation from
atomic context (either under entry spin-lock, or per-CPU local-lock or
both).  Now, with non-atomic zram read()/write(), those limitations are
relaxed and we can allow direct and indirect reclaim.

Link: https://lkml.kernel.org/r/20250221222958.2225035-15-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Hillf Danton <hdanton@sina.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Yosry Ahmed <yosry.ahmed@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/zram/backend_zstd.c