]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: disable Write Zeroes on Sandisk Skyhawk
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 13 Oct 2020 08:34:45 +0000 (16:34 +0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 22 Oct 2020 13:27:14 +0000 (15:27 +0200)
commit7536c0af47ca690386f6ebe1caec26045cedfe5c
tree5ad757979464120eafaa057a491478b6871da2d4
parentbe82ed5333be2ed2c8c3c540f154df41d8284a70
nvme-pci: disable Write Zeroes on Sandisk Skyhawk

Like commit 71d5ca14a4a5 ("nvme-pci: prevent SK hynix PC400 from using
Write Zeroes command"), Sandisk Skyhawk has the same issue:
[ 6305.633887] blk_update_request: operation not supported error, dev nvme0n1, sector 340812032 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0

So also disable Write Zeroes command on Sandisk Skyhawk.

BugLink: https://bugs.launchpad.net/bugs/1899503
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c