diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-13 08:34:15 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-02-13 08:56:59 -0700 |
commit | 0327ca9d53bfbb0918867313049bba7046900f73 (patch) | |
tree | 54284e4f975717a9d44640759c04f728a8e238a5 /block/blk-settings.c | |
parent | block: add an API to atomically update queue limits (diff) | |
download | linux-0327ca9d53bfbb0918867313049bba7046900f73.tar.gz linux-0327ca9d53bfbb0918867313049bba7046900f73.tar.bz2 linux-0327ca9d53bfbb0918867313049bba7046900f73.zip |
block: use queue_limits_commit_update in queue_max_sectors_store
Convert queue_max_sectors_store to use queue_limits_commit_update to
check and update the max_sectors limit and freeze the queue before
doing so to ensure we don't have requests in flight while changing
the limits.
Note that this removes the previously held queue_lock that doesn't
protect against any other reader or writer.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20240213073425.1621680-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-settings.c')
0 files changed, 0 insertions, 0 deletions