Thread (5 messages) 5 messages, 3 authors, 2025-02-03

Re: [PATCH] block: force noio scope in blk_mq_freeze_queue

From: Jens Axboe <axboe@kernel.dk>
Date: 2025-02-03 15:12:06
Also in: ceph-devel, linux-block, linux-nvme, linux-scsi

On 2/3/25 8:09 AM, Guenter Roeck wrote:
On Fri, Jan 31, 2025 at 01:03:47PM +0100, Christoph Hellwig wrote:
quoted
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@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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help