numam-spdk/lib
Daniel Verkamp eb555b139e nvme: add return code to nvme_qpair_submit_request
If the controller is failed, attempting to submit additional I/O is
futile - it will be immediately failed using the completion callback,
which can result in infinite recursion if the application code resubmits
I/Os on failure.

Instead, provide a way for request submission to indicate failure, and
use it to exit early if the controller is failed; this can only happen
when a reset failed (timed out).

If a request is submitted directly by the user when the controller has
failed, we can return an error code directly.  For the case where I/O
was queued and is being resubmitted after a reset, we still need to call
the completion handler via _nvme_fail_request_ctrlr_failed().

Change-Id: I9e144328d524b25db2acf48e923b584746e8d0b6
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
2016-03-16 12:16:47 -07:00
..
ioat ioat: make channel allocation explicit 2016-03-15 09:50:17 -07:00
memory vtophys: add spdk_ prefix 2016-02-08 14:28:56 -07:00
nvme nvme: add return code to nvme_qpair_submit_request 2016-03-16 12:16:47 -07:00
util Add vfio support to scripts. 2016-02-22 11:30:47 -07:00
Makefile Remove year from copyright headers. 2016-01-28 08:54:18 -07:00