[PATCH] block: force noio scope in blk_mq_freeze_queue
Jens Axboe
axboe at kernel.dk
Mon Feb 3 07:12:04 PST 2025
On 2/3/25 8:09 AM, Guenter Roeck wrote:
> On Fri, Jan 31, 2025 at 01:03:47PM +0100, Christoph Hellwig wrote:
>> When block drivers or the core block code perform allocations with a
>> frozen queue, this could try to recurse into the block device to
>> reclaim memory and deadlock. Thus all allocations done by a process
>> that froze a queue need to be done without __GFP_IO and __GFP_FS.
>> Instead of tying to track all of them down, force a noio scope as
>> part of freezing the queue.
>>
>> Note that nvme is a bit of a mess here due to the non-owner freezes,
>> and they will be addressed separately.
>>
>> Signed-off-by: Christoph Hellwig <hch at lst.de>
>
> All sparc64 builds fail with this patch in the tree.
Yep, Stephen reported the same yesterday. The patch is queued up,
will most likely just send it out separately.
--
Jens Axboe
More information about the linux-mtd
mailing list