Commit 96dfef3b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Bart Van Assche
Browse files

UPSTREAM: nbd: fix queue freeze vs limits lock order



Match the locking order used by the core block code by only freezing
the queue after taking the limits lock using the
queue_limits_commit_update_frozen helper.

This also allows removes the need for the separate __nbd_set_size helper,
so remove it.

Change-Id: I3e9468cd5d844e149176bc54b4123f2524baaa77
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarMing Lei <ming.lei@redhat.com>
Reviewed-by: default avatarDamien Le Moal <dlemoal@kernel.org>
Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: default avatarNilay Shroff <nilay@linux.ibm.com>
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20250110054726.1499538-9-hch@lst.de


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
(cherry picked from commit f3dec61d)
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
parent 1bf8be0b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment