Re: [PATCH] block: avoild hang when bio_list is non-NULL in submit_bio_wait()
From: Jiucheng Xu
Date: Mon Mar 02 2026 - 21:19:50 EST
On 3/3/2026 10:11 AM, Gao Xiang wrote:
[Some people who received this message don't often get email from hsiangkao@xxxxxxxxxxxxxxxxx. Learn why this is important at https:// aka.ms/LearnAboutSenderIdentification ]Got it, thanks for the details!
[ EXTERNAL EMAIL ]
On 2026/3/3 10:03, Jiucheng Xu wrote:
...
that need to use GFP_NOIO.
Yes, it should make vm_map_ram() in the end_io path use
GFP_NOIO instead.
Jiucheng, could you add memalloc_noio_{save,restore}() to
wrap up this path?
Thanks for Christoph's and Xiang's comments, I will try it. Thanks!
Just one more note: just wrap up z_erofs_decompressqueue_work() in
z_erofs_decompress_kickoff() with memalloc_noio_{save,restore}() is
enough.
...
memalloc_noio_save()
z_erofs_decompressqueue_work()
memalloc_noio_restore()