]> www.infradead.org Git - users/hch/block.git/commit
nbd: use the atomic queue limits API in nbd_set_size
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Feb 2024 14:38:46 +0000 (06:38 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Mar 2024 16:08:22 +0000 (09:08 -0700)
commit268283244c0f018dec8bf4a9c69ce50684561f46
treedb768352ad1d32047f181ef49ddca6a26a6e31fa
parent242a49e5c8784e93a99e4dc4277b28a8ba85eac5
nbd: use the atomic queue limits API in nbd_set_size

Use queue_limits_start_update / queue_limits_commit_update to update
all the limits in one go and with proper sanity checking.

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