commit | 92911a55d42084cd285250c275d9f238783638c2 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Tue Apr 26 13:51:58 2016 +0200 |
committer | Jens Axboe <axboe@fb.com> | Mon May 02 09:09:23 2016 -0600 |
tree | 57a8e413100b35efae3fe64fcf1a752c9d36776c | |
parent | bb8d261e088811ef2b564d745afcd1633428010a [diff] |
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>