]> git.baikalelectronics.ru Git - kernel.git/commit
zram_drv: allow reclaim on bio_alloc
authorJaewon Kim <jaewon31.kim@samsung.com>
Fri, 5 Nov 2021 20:45:09 +0000 (13:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:43 +0000 (13:30 -0700)
commit28ef52b0947c30cd5e931718319e34d71c7793bb
tree177bc6d1b9177b3d86a54555c706699154327f1d
parenta34f928fac6b8b6da6f2fd96e26600b040db147e
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/zram/zram_drv.c