NVMe: Failed controller initialization fixes
authorKeith Busch <keith.busch@intel.com>
Thu, 18 Jun 2015 19:36:39 +0000 (13:36 -0600)
committerJens Axboe <axboe@fb.com>
Sat, 27 Jun 2015 17:42:53 +0000 (11:42 -0600)
commitde3eff2bad56f0a29d3915105223d368f2bbc94e
tree628ca789a3036a36fd1600f4ae511cfbb3aa1e0e
parentffe7704d59025ce7a37525146d44b6a79510fc8e
NVMe: Failed controller initialization fixes

This fixes an infinite device reset loop that may occur on devices that
fail initialization. If the drive fails to become ready for any reason
that does not involve an admin command timeout, the probe task should
assume the drive is unavailable and remove it from the topology. In
the case an admin command times out during device probing, the driver's
existing reset action will handle removing the drive.

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