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
  2026-03-05 10:05 ` Brian Geffon
  0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread

* Re: [PATCH] zram: use GFP_KERNEL for post-processing slot allocation
  2026-03-05  2:16 [PATCH] zram: use GFP_KERNEL for post-processing slot allocation Sergey Senozhatsky
@ 2026-03-05 10:05 ` Brian Geffon
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Geffon @ 2026-03-05 10:05 UTC (permalink / raw)
  To: Sergey Senozhatsky; +Cc: Andrew Morton, Minchan Kim, linux-block, linux-mm

On Wed, Mar 4, 2026 at 6:16 PM Sergey Senozhatsky
<senozhatsky@chromium.org> wrote:
>
> 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>
Acked-by: Brian Geffon <bgeffon@google.com>
> ---
>  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] 2+ messages in thread

end of thread, other threads:[~2026-03-05 10:06 UTC | newest]

Thread overview: 2+ messages (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
2026-03-05 10:05 ` Brian Geffon

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