From mboxrd@z Thu Jan 1 00:00:00 1970 From: keith.busch@intel.com (Keith Busch) Date: Thu, 1 Nov 2018 08:38:08 -0600 Subject: [PATCH] nvme-pci: Add Write Zero support to Intel 660p In-Reply-To: <20181101052749.GA4349@lst.de> References: <20181026224146.198311-1-gwendal@chromium.org> <20181026225807.GA10621@localhost.localdomain> <20181027074452.GA15404@lst.de> <20181029152401.GA16336@localhost.localdomain> <20181101052749.GA4349@lst.de> Message-ID: <20181101143807.GL19483@localhost.localdomain> On Thu, Nov 01, 2018@06:27:49AM +0100, Christoph Hellwig wrote: > On Mon, Oct 29, 2018@09:24:01AM -0600, Keith Busch wrote: > > > The 'Deallocate Logical Block Features' bits 0 and 1 only tell what > > > is read back from deallocated logic blocks, but it does not guarantee > > > that all blocks a DSM deallocate is called on are actually deallocated. > > > > Sure, but whether the requested blocks are deallocated or not is > > irrelevant. We're only using this feature here for its deterministic > > read behavior. > > I can't parse this. We currently use DSM Deallocate for REQ_OP_WRITE_ZEROES. We don't care if the blocks are actually deallocated. We only care if reading them back determinisitically returns 0's, and DLFEAT tells us if we can rely on that behavior. I'm just suggesting to use that instead of using the NVME_QUIRK_DEALLOCATE_ZEROES quirk.