]> www.infradead.org Git - users/dwmw2/linux.git/commit
nvme-pci: remove two deallocate zeroes quirks
authorKeith Busch <kbusch@kernel.org>
Mon, 2 Dec 2024 17:45:48 +0000 (09:45 -0800)
committerKeith Busch <kbusch@kernel.org>
Tue, 3 Dec 2024 18:56:27 +0000 (10:56 -0800)
commitb0de5456e201c475d6a860ceeb3ed8ee2923695a
treeed010ad69c3338440a22c51f788c865150040a12
parent58a0c875ce028678c9594c7bdf3fe33462392808
nvme-pci: remove two deallocate zeroes quirks

The quirk was initially used as a signal to set the discard_zeroes_data
queue limit because there were some use cases that relied on that
behavior. The queue limit no longer exists as every user of it has been
converted to use the write zeroes operation instead.

The quirk now means to use a discard command as an alias to a write
zeroes request. Two of the devices previously using the quirk support
the write zeroes command directly, so these don't need or want to use
discard when the desired operation is to write zeroes.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c