]> www.infradead.org Git - users/hch/block.git/commit
sr: convert to the atomic queue limits API
authorChristoph Hellwig <hch@lst.de>
Fri, 31 May 2024 07:48:07 +0000 (09:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 14 Jun 2024 16:19:44 +0000 (10:19 -0600)
commit969f17e10f5b732c05186ee0126c8a08166d0cda
tree325df113acefa7b4fbd05ae40dd32b575c43b3fc
parent804e498e0496d889090f32f812b5ce1a4f2aa63e
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>
Link: https://lore.kernel.org/r/20240531074837.1648501-13-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/sr.c