dm: use queue_limits_set
authorChristoph Hellwig <hch@lst.de>
Wed, 28 Feb 2024 22:56:42 +0000 (14:56 -0800)
committerMike Snitzer <snitzer@kernel.org>
Tue, 23 Apr 2024 15:20:16 +0000 (11:20 -0400)
commit1c0e720228ad1c63bb487cdcead2558353b5a067
treec9ce1d3e85e7dfeac9a0eb2801f65c0904557860
parent7560680c8d1e810826d048a61d35668541dce038
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>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-table.c