diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-28 23:56:42 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-03-01 16:54:42 +0100 |
commit | 8e0ef412869430d114158fc3b9b1fb111e247bd3 (patch) | |
tree | 8ab56cbca9581ec7306b49d280f0541a8e4fe0ee /block | |
parent | block: add a queue_limits_stack_bdev helper (diff) | |
download | linux-8e0ef412869430d114158fc3b9b1fb111e247bd3.tar.xz linux-8e0ef412869430d114158fc3b9b1fb111e247bd3.zip |
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>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c index 865fe4ebbf9b..13865a9f8972 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c @@ -267,7 +267,7 @@ int queue_limits_commit_update(struct request_queue *q, EXPORT_SYMBOL_GPL(queue_limits_commit_update); /** - * queue_limits_commit_set - apply queue limits to queue + * queue_limits_set - apply queue limits to queue * @q: queue to update * @lim: limits to apply * |