]> git.itanic.dy.fi Git - linux-stable/commit
nvme: also skip discard granularity updates in nvme_config_discard
authorChristoph Hellwig <hch@lst.de>
Tue, 26 Dec 2023 08:58:42 +0000 (08:58 +0000)
committerKeith Busch <kbusch@kernel.org>
Wed, 3 Jan 2024 16:09:40 +0000 (08:09 -0800)
commita4be9679aa3e862adcab465122c7678c2b5d40e6
treea3c8f07473711c31ec0e90af41337799d4a0c8f4
parentd3074e9a73e3c0511f1033b15345e2feb9664b3c
nvme: also skip discard granularity updates in nvme_config_discard

Don't just skip the discard sectors and segments but also the granularity
if a value was already set before.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c