nbd: freeze the queue for queue limits updates
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Feb 2024 14:38:45 +0000 (06:38 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Mar 2024 16:08:22 +0000 (09:08 -0700)
commit242a49e5c8784e93a99e4dc4277b28a8ba85eac5
tree4323a860a00292e5979106939a829c9dcba98caa
parent7ea201f2cc1da999b9a0a23ea20b64eb2c4719a9
nbd: freeze the queue for queue limits updates

nbd currently updates the logical and physical block sizes as well
as the discard_sectors on a live queue.  Freeze the queue first to
make sure there are not commands in flight that can see torn or
inconsistent limits.

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