OSDN Git Service

nvme: avoid an Identify Controller command for each namespace scan
authorChristoph Hellwig <hch@lst.de>
Sat, 4 Apr 2020 08:31:35 +0000 (10:31 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:35 +0000 (16:18 -0600)
commit4005f28d25cbd3d4f85529a31e46a0b78e293082
tree091e90c673c2421834e02cb8642bb34ce105b16d
parent4450ba3bbb47d5fe852b730ab6773d2c18cfbfd6
nvme: avoid an Identify Controller command for each namespace scan

The namespace lists are 0-terminated, so we don't really need the NN value
execept for the legacy sequential scan.

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