mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + zram_drv-allow-reclaim-on-bio_alloc.patch added to -mm tree
@ 2021-09-15 23:44 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-09-15 23:44 UTC (permalink / raw)
  To: jaewon31.kim, minchan, mm-commits, ytk.lee


The patch titled
     Subject: zram_drv: allow reclaim on bio_alloc
has been added to the -mm tree.  Its filename is
     zram_drv-allow-reclaim-on-bio_alloc.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/zram_drv-allow-reclaim-on-bio_alloc.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/zram_drv-allow-reclaim-on-bio_alloc.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Jaewon Kim <jaewon31.kim@samsung.com>
Subject: zram_drv: allow reclaim on bio_alloc

The read_from_bdev_async is not called on atomic context.  So GFP_NOIO is
available rather than GFP_ATOMIC.  If there were reclaimable pages with
GFP_NOIO, we can avoid allocation failure and page fault failure.

Link: https://lkml.kernel.org/r/20210908005241.28062-1-jaewon31.kim@samsung.com
Signed-off-by: Jaewon Kim <jaewon31.kim@samsung.com>
Reported-by: Yong-Taek Lee <ytk.lee@samsung.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/block/zram/zram_drv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/block/zram/zram_drv.c~zram_drv-allow-reclaim-on-bio_alloc
+++ a/drivers/block/zram/zram_drv.c
@@ -587,7 +587,7 @@ static int read_from_bdev_async(struct z
 {
 	struct bio *bio;
 
-	bio = bio_alloc(GFP_ATOMIC, 1);
+	bio = bio_alloc(GFP_NOIO, 1);
 	if (!bio)
 		return -ENOMEM;
 
_

Patches currently in -mm which might be from jaewon31.kim@samsung.com are

zram_drv-allow-reclaim-on-bio_alloc.patch


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

only message in thread, other threads:[~2021-09-15 23:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15 23:44 + zram_drv-allow-reclaim-on-bio_alloc.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).