]> www.infradead.org Git - users/hch/block.git/commit
sd: convert to the atomic queue limits API
authorChristoph Hellwig <hch@lst.de>
Fri, 31 May 2024 07:48:06 +0000 (09:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 14 Jun 2024 16:19:44 +0000 (10:19 -0600)
commit804e498e0496d889090f32f812b5ce1a4f2aa63e
tree3c8c2511987cc7ff5973cab83c8d58125f4ee194
parent9c1d339a1bf45f4d3a2e77bbf24b0ec51f02551c
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>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20240531074837.1648501-12-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/sd.c
drivers/scsi/sd.h
drivers/scsi/sd_zbc.c