aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/nvme.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-04-26 13:51:58 +0200
committerJens Axboe <axboe@fb.com>2016-05-02 09:09:23 -0600
commit92911a55d42084cd285250c275d9f238783638c2 (patch)
tree57a8e413100b35efae3fe64fcf1a752c9d36776c /drivers/nvme/host/nvme.h
parentnvme: introduce a controller state machine (diff)
downloadlinux-dev-92911a55d42084cd285250c275d9f238783638c2.tar.xz
linux-dev-92911a55d42084cd285250c275d9f238783638c2.zip
nvme: tighten up state check for namespace scanning
We only should be scanning namespaces if the controller is live. Currently we call the function just before setting it live, so fix the code up to move the call to nvme_queue_scan to just below the state change. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Acked-by Jon Derrick: <jonathan.derrick@intel.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
0 files changed, 0 insertions, 0 deletions