]> 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, 31 May 2024 07:29:23 +0000 (09:29 +0200)
commitdbf76222f67f7d0de0083059b742d7f6266a3050
tree2ea800814b451c1b2b5896231f344c2fe50fcd0f
parent1a4fb3f30be671b129bbf8e39a4749cf5e68022f
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>
drivers/scsi/sr.c