diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-13 08:34:17 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-02-13 16:56:59 +0100 |
commit | ff956a3be95b45b2a823693a8c9db740939ca35e (patch) | |
tree | fbe940ff3b81d3c96b877536f27426ec1d6bf323 /block/genhd.c | |
parent | block: add a max_user_discard_sectors queue limit (diff) | |
download | linux-ff956a3be95b45b2a823693a8c9db740939ca35e.tar.xz linux-ff956a3be95b45b2a823693a8c9db740939ca35e.zip |
block: use queue_limits_commit_update in queue_discard_max_store
Convert queue_discard_max_store to use queue_limits_commit_update to
check and update the max_discard_sectors limit and freeze the queue
before doing so to ensure we don't have requests in flight while
changing the limits.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
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-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions