Searched hist:"0327 ca9d53bfbb0918867313049bba7046900f73" (Results 1 – 1 of 1) sorted by relevance
/linux/block/ |
H A D | blk-sysfs.c | diff 0327ca9d53bfbb0918867313049bba7046900f73 Tue Feb 13 08:34:15 CET 2024 Christoph Hellwig <hch@lst.de> 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>
|