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)
commitb9a5c3d4c34d8bd9fd75f7f28d18a57cb68da237
treeffa074b6fbc76a4c92b2ec48a868358f9288abda
parente4fcc72c1a420bdbe425530dd19724214ceb44ec
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