NVMe: Handling devices incapable of I/O
authorKeith Busch <keith.busch@intel.com>
Mon, 23 Jun 2014 20:25:35 +0000 (14:25 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 4 Nov 2014 20:17:07 +0000 (13:17 -0700)
commitbadc34d4154de81b965629a5c3110e058eb8ca2b
tree60c23d2aaf46491087d8c005938f6d5e9655417a
parent01079522f94b3a1c87cfa375be3917d2da6e6363
NVMe: Handling devices incapable of I/O

This is a minor refactor for handling devices that are incapable of IO.
The driver previously used special error codes to know that IO queues
are unavailable, but we have an online queue count now.

This also fixes an issue where the driver successfully sets the queue
count, but either is unable to allocate an IO queue or the device can't
create one for some reason.

If the driver can successfully enable the device and get responses to
admin commands, the driver will bring up a character device for managment
but not create block devices.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c