dm: use queue_limits_set
authorChristoph Hellwig <hch@lst.de>
Wed, 28 Feb 2024 22:56:42 +0000 (14:56 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Mar 2024 15:54:42 +0000 (08:54 -0700)
commit8e0ef412869430d114158fc3b9b1fb111e247bd3
tree8ab56cbca9581ec7306b49d280f0541a8e4fe0ee
parentc1373f1cf452e4c7553a9d3bc05d87ec15c4f85f
dm: use queue_limits_set

Use queue_limits_set which validates the limits and takes care of
updating the readahead settings instead of directly assigning them to
the queue.  For that make sure all limits are actually updated before
the assignment.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
Link: https://lore.kernel.org/r/20240228225653.947152-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-settings.c
drivers/md/dm-table.c