]> 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, 31 May 2024 07:29:23 +0000 (09:29 +0200)
commit1a4fb3f30be671b129bbf8e39a4749cf5e68022f
treef78dfd4dcf50a45e3636459f5b6fd92667554b46
parent3746fac27747b78162454b4db87affc4b9998a6c
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: Damien Le Moal <dlemoal@kernel.org>
drivers/scsi/sd.c
drivers/scsi/sd.h
drivers/scsi/sd_zbc.c