]> www.infradead.org Git - users/hch/block.git/commit
sd: simplify the ZBC case in provisioning_mode_store
authorChristoph Hellwig <hch@lst.de>
Tue, 21 May 2024 19:56:24 +0000 (12:56 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 31 May 2024 07:29:22 +0000 (09:29 +0200)
commit40b3388a35b4b99a07f420c02c1b084077d7bb8c
treed9baf4ca741eb90aba09d919577c2a6d9eb81865
parent285177f71ed1727df6728e3ab2f2610341c8ecd2
sd: simplify the ZBC case in provisioning_mode_store

Don't reset the discard settings to no-op over and over when a user
writes to the provisioning attribute as that is already the default
mode for ZBC devices.  In hindsight we should have made writing to
the attribute fail for ZBC devices, but the code has probably been
around for far too long to change this now.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
drivers/scsi/sd.c