]> www.infradead.org Git - users/hch/block.git/commit
sd: convert to the atomic queue limits API
authorChristoph Hellwig <hch@lst.de>
Tue, 28 May 2024 08:20:20 +0000 (10:20 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 14 Jun 2024 05:20:13 +0000 (07:20 +0200)
commit73ff412606edb3a2b0f4b59dc0f2399951392bdb
tree6cba96a0b6033874a3760056aecba9f72a39b9e7
parentded710bb27774846099287f6ed12c43758d04ca7
sd: convert to the atomic queue limits API

Assign all queue limits through a local queue_limits variable and
queue_limits_commit_update so that we can't race updating them from
multiple places, and freeze the queue when updating them so that
in-progress I/O submissions don't see half-updated limits.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c
drivers/scsi/sd.h
drivers/scsi/sd_zbc.c