[PATCH] block: avoild hang when bio_list is non-NULL in submit_bio_wait()
Gao Xiang
hsiangkao at linux.alibaba.com
Tue Mar 3 13:11:38 AEDT 2026
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
More information about the Linux-erofs
mailing list