nvme-pci: qdepth 1 quirk
authorKeith Busch <kbusch@kernel.org>
Wed, 11 Sep 2024 17:39:59 +0000 (10:39 -0700)
committerKeith Busch <kbusch@kernel.org>
Fri, 13 Sep 2024 14:29:30 +0000 (07:29 -0700)
commit83bdfcbdbe5d901c5fa432decf12e1725a840a56
tree26588726ef4e9b669710b197c7e9aefdd31c46b4
parent2d5a333e09c388189238291577e443221baacba0
nvme-pci: qdepth 1 quirk

Another device has been reported to be unreliable if we have more than
one outstanding command. In this new case, data corruption may occur.
Since we have two devices now needing this quirky behavior, make a
generic quirk flag.

The same Apple quirk is clearly not "temporary", so update the comment
while moving it.

Link: https://lore.kernel.org/linux-nvme/191d810a4e3.fcc6066c765804.973611676137075390@collabora.com/
Reported-by: Robert Beckett <bob.beckett@collabora.com>
Reviewed-by: Christoph Hellwig hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c