]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: refine the Qemu Identify CNS quirk
authorChristoph Hellwig <hch@lst.de>
Sat, 4 Apr 2020 08:11:28 +0000 (10:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:35 +0000 (16:18 -0600)
commit39890bc9e601bba8294b5d121c7e93b8515e3260
treeffa074b6fbc76a4c92b2ec48a868358f9288abda
parent2505d02becc3b77373dbe5b614b1b18b6b8bbc37
nvme: refine the Qemu Identify CNS quirk

Add a helper to check if we can use Identify CNS values > 1, and refine
the Qemu quirk to not apply to reported versions larger than 1.1, as the
Qemu implementation had been fixed by then.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c