nvme: check for a live controller in nvme_dev_open
authorChristoph Hellwig <hch@lst.de>
Wed, 18 Oct 2017 15:09:31 +0000 (17:09 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 27 Oct 2017 06:05:22 +0000 (09:05 +0300)
commit999ada28713d7bcf4a2c70cbab47b08cd95f2cf8
tree4bf98f8395f8be442b12d06963d6e873351b40d7
parenta6a5149b10ec8ab8b4a9479a8230265c1b573be0
nvme: check for a live controller in nvme_dev_open

This is a much more sensible check than just the admin queue.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@rimbeg.me>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
drivers/nvme/host/core.c