]> www.infradead.org Git - users/hch/block.git/commit
sd: only call disk_clear_zoned when needed block-remove-zone-aware
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Dec 2023 07:13:50 +0000 (08:13 +0100)
committerChristoph Hellwig <hch@lst.de>
Sat, 16 Dec 2023 04:26:37 +0000 (05:26 +0100)
commita58e8699031362970ff2c4652f29498eed811c7b
tree1b96f794b1677784f42a46abe4eefca680fe3e78
parentf1c9ae686ec0b9d43630c5c39991a253c170b9c0
sd: only call disk_clear_zoned when needed

disk_clear_zoned only needs to be called when a device reported zone
managed mode first and we clear it.  Add a check so that disk_clear_zoned
isn't called on devices that were never zoned.

This avoids a fairly expensive queue freezing when revalidating
conventional devices.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/sd.c