]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Start all requests
authorKeith Busch <keith.busch@intel.com>
Thu, 8 Jan 2015 01:55:48 +0000 (18:55 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 8 Jan 2015 16:00:29 +0000 (09:00 -0700)
commite09b4055fcfcf8d03f3f85ef9729eda4d34e1766
tree75548167908bbd44b55631879c54840bde339dfc
parent82ca10729e3d5ae540adea25a45bf25a4ed36335
NVMe: Start all requests

Once the nvme callback is set for a request, the driver can start it
and make it available for timeout handling. For timed out commands on a
device that is not initialized, this fixes potential deadlocks that can
occur on startup and shutdown when a device is unresponsive since they
can now be cancelled.

Asynchronous requests do not have any expected timeout, so these are
using the new "REQ_NO_TIMEOUT" request flags.

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