linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] zram: use GFP_KERNEL for post-processing slot allocation
@ 2026-03-05  2:16 Sergey Senozhatsky
  0 siblings, 0 replies; only message in thread
From: Sergey Senozhatsky @ 2026-03-05  2:16 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Minchan Kim, Brian Geffon, linux-block, linux-mm, Sergey Senozhatsky

Post-processing slot allocation used to be performed under
slot bit-lock, so gfp was restricted, then we switched to
a sleepable slot lock but gpf still remained restricted.
Drop that restriction and use GFP_KERNEL instead.

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
---
 drivers/block/zram/zram_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
index fa38d26119ec..6a6fd08a5a15 100644
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -297,7 +297,7 @@ static bool place_pp_slot(struct zram *zram, struct zram_pp_ctl *ctl,
 	struct zram_pp_slot *pps;
 	u32 bid;
 
-	pps = kmalloc_obj(*pps, GFP_NOIO | __GFP_NOWARN);
+	pps = kmalloc_obj(*pps, GFP_KERNEL | __GFP_NOWARN);
 	if (!pps)
 		return false;
 
-- 
2.53.0.473.g4a7958ca14-goog



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-03-05  2:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-05  2:16 [PATCH] zram: use GFP_KERNEL for post-processing slot allocation Sergey Senozhatsky

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