nvme: temporary fix for Apple controller reset
authorStephan Günther <guenther@tum.de>
Tue, 1 Dec 2015 20:23:22 +0000 (13:23 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 1 Dec 2015 20:23:22 +0000 (13:23 -0700)
commit1f390c1fde3a96974784be53cb3a645da3e4849c
treed84e25cbfbdab69b8b12da857557a20a232b8e6d
parentdbac117542b7e814245c43daa638a3626230cb2a
nvme: temporary fix for Apple controller reset

Recent patches added basic support for the Apple NVMe controller but
still cause resets and data corruption on that particular controller
when a specific pattern of read/flush commands occurs. Limiting the
queue depth to 2 works around that issue.

This patch enforces that limit only for the Apple controller and is
considered a temporary fix until we find the root source of that
problem.

Signed-off-by: Stephan Günther <guenther@tum.de>
Signed-off-by: Maurice Leclaire <leclaire@in.tum.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/pci.c