]> www.infradead.org Git - users/hch/block.git/commit
sd: cleanup zoned queue limits initialization
authorChristoph Hellwig <hch@lst.de>
Fri, 31 May 2024 07:48:05 +0000 (09:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 14 Jun 2024 16:19:44 +0000 (10:19 -0600)
commit9c1d339a1bf45f4d3a2e77bbf24b0ec51f02551c
treeb7d54975c9b574ed434a38780f7cf8ff129c3945
parentf1e8185fc12c699c3abf4f39b1ff5d7793da3a95
sd: cleanup zoned queue limits initialization

Consolidate setting zone-related queue limits in sd_zbc_read_zones
instead of splitting them between sd_zbc_revalidate_zones and
sd_zbc_read_zones, and move the early_zone_information initialization
in sd_zbc_read_zones above setting up the queue limits.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
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-11-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/sd_zbc.c