nvme-pci: disable Write Zeroes on Phison E3C/E4C
authorTina Hsu <tina_hsu@phison.corp-partner.google.com>
Thu, 22 Sep 2022 06:16:30 +0000 (14:16 +0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 27 Sep 2022 07:20:30 +0000 (09:20 +0200)
commitd14c273132aec81a1a8107c9ab4865b89e7910a7
treec86021bca20a8597bebd4b9bbadd29d6a621ab16
parentc292a337d0e45a292c301e3cd51c35aa0ae91e95
nvme-pci: disable Write Zeroes on Phison E3C/E4C

E3C/E4C SSDs do support the Write Zeroes command in theory, but have very
bad performance when using it.  As the firmware has been frozen for these
products we can not expect firmware improvements for it, so disable
Write Zeroes.

Signed-off-by: Tina Hsu <tina_hsu@phison.corp-partner.google.com>
[hch: update the commit message]
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c