]> www.infradead.org Git - users/jedix/linux-maple.git/commit
loop: don't freeze the queue in loop_update_dio
authorChristoph Hellwig <hch@lst.de>
Fri, 10 Jan 2025 07:37:37 +0000 (08:37 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 10 Jan 2025 14:31:50 +0000 (07:31 -0700)
commit0cd719aa63def1d57316e8e903f01f4af0641a46
treea4b7c0ebd8262c84c5ebcf6cec504ea0260e3c3a
parent3a693110afd7127400cc9f779c885f01cf16d0f2
loop: don't freeze the queue in loop_update_dio

All callers of loop_update_dio except for loop_configure already have the
queue frozen, and loop_configure works on an unbound device.  Remove the
superfluous recursive freezing in loop_update_dio and add asserts for the
locking and freezing state instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250110073750.1582447-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c