]> www.infradead.org Git - users/hch/block.git/commit
sr: convert to the atomic queue limits API
authorChristoph Hellwig <hch@lst.de>
Tue, 21 May 2024 20:07:45 +0000 (13:07 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 14 Jun 2024 05:20:19 +0000 (07:20 +0200)
commit46fa2f0ce16b07c6fe09270b30c1e0a3ba606ba1
treec61fe2465ec066ece29879ec31f16ba0814db6bb
parent73ff412606edb3a2b0f4b59dc0f2399951392bdb
sr: 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 free the queue when updating them so that
in-progress I/O submissions don't see half-updated limits.

Also use the chance to clean up variable names to standard ones.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sr.c