[PATCH 04/15] block: use queue_limits_commit_update in queue_max_sectors_store
Hannes Reinecke
hare at suse.de
Tue Jan 23 22:09:56 PST 2024
On 1/22/24 18:36, Christoph Hellwig wrote:
> Convert queue_max_sectors_store to use queue_limits_commit_update to
> check and updated the max_sectors limit and freeze the queue before
> doing so to ensure we don't have request in flight while changing
> the limits.
>
> Note that this removes the previously held queue_lock that doesn't
> protect against any other read or writer.
>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> ---
> block/blk-sysfs.c | 37 ++++++++++++-------------------------
> 1 file changed, 12 insertions(+), 25 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare at suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare at suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), GF: Ivo Totev, Andrew McDonald,
Werner Knoblich
More information about the Linux-nvme
mailing list