NVMe: Schedule timeout for sync commands
authorKeith Busch <keith.busch@intel.com>
Fri, 19 Apr 2013 20:11:06 +0000 (14:11 -0600)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Thu, 2 May 2013 19:36:02 +0000 (15:36 -0400)
commit78f8d2577bd79ce9d62f4d9e6d3b895bd1dd1d1d
tree95cd85a20e7b352a9d8810f831cd79f82061e54b
parentf410c680b5344f1cb63ff011c6ae3d4963f45c30
NVMe: Schedule timeout for sync commands

Schedule a timeout on sync commands in case the command times out and
the device is not being polled for timeouts. This prevents device removal
from hanging forever if the device has stopped responding.

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