]> www.infradead.org Git - users/hch/block.git/commit
sd: cleanup zoned queue limits initialization
authorChristoph Hellwig <hch@lst.de>
Wed, 22 May 2024 00:06:42 +0000 (17:06 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 14 Jun 2024 05:20:07 +0000 (07:20 +0200)
commitded710bb27774846099287f6ed12c43758d04ca7
tree38add737b1907fcadce36ccb55e4859acfbe9834
parentfa58646575576ad4f61a7ac5ca165176400007e2
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>
drivers/scsi/sd_zbc.c