diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-13 10:34:17 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-02-13 18:56:59 +0300 |
commit | ff956a3be95b45b2a823693a8c9db740939ca35e (patch) | |
tree | fbe940ff3b81d3c96b877536f27426ec1d6bf323 /usr/include | |
parent | 4f563a64732dabb2677c7d1232a8f714a18b41b3 (diff) | |
download | linux-ff956a3be95b45b2a823693a8c9db740939ca35e.tar.xz |
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 'usr/include')
0 files changed, 0 insertions, 0 deletions