[PATCH] block: avoild hang when bio_list is non-NULL in submit_bio_wait()
Jiucheng Xu
jiucheng.xu at amlogic.com
Tue Mar 3 13:17:25 AEDT 2026
On 3/3/2026 10:11 AM, Gao Xiang wrote:
> [Some people who received this message don't often get email from
> hsiangkao at linux.alibaba.com. Learn why this is important at https://
> aka.ms/LearnAboutSenderIdentification ]
>
> [ 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()
Got it, thanks for the details!
More information about the Linux-erofs
mailing list