[PATCH] nvme: implement the DEAC bit for the Write Zeroes command

Pankaj Raghav pankydev8 at gmail.com
Mon Oct 31 07:43:30 PDT 2022


On Sun, Oct 30, 2022 at 05:29:06PM +0100, Christoph Hellwig wrote:
> While the specification allows devices to either deallocate data
> or to actually write zeroes on any Write Zeroes command, many SSDs
> only do the sensible thing and deallocate data when the DEAC bit
> is specific.  Set it when it is suppored and the caller doesn't
> explicitly opt out of deallocation.
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>

Looks good,
Reviewed-by: Pankaj Raghav <p.raghav at samsung.com>



More information about the Linux-nvme mailing list