Re: [PATCH] block: avoild hang when bio_list is non-NULL in submit_bio_wait()

From: Gao Xiang

Date: Mon Mar 02 2026 - 21:13:12 EST




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()


Best Regards,
Jiucheng