]> 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, 14 Jun 2024 05:20:07 +0000 (07:20 +0200)
commit5248f60b76340c394cafad471d9044d6990447e7
treedbb96d824e640f435b98f30645cb90887c56f4e3
parent2dd7c176b44b476e1e349b29bdd7e643fa5e529e
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>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c