diff options
author | Christoph Hellwig <[email protected]> | 2017-11-02 21:28:51 +0300 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2017-11-10 19:53:25 -0700 |
commit | e54b064cb24c8268252336ccdd6523e08c0dcbde (patch) | |
tree | 22e833eebb40a033d6b69588ac20256144cb6b73 /lib/netdev-notifier-error-inject.c | |
parent | a6da0024ffc19e0d47712bb5ca4fd083f76b07df (diff) |
nvme: move the dying queue check from cancel to completion
With multipath we don't want a hard DNR bit on a request that is cancelled
by a controller reset, but instead want to be able to retry it on another
patch. To archive this don't always set the DNR bit when the queue is
dying in nvme_cancel_request, but defer that decision to
nvme_req_needs_retry. Note that it applies to any command there and not
just cancelled commands, but one the queue is dying that is the right
thing to do anyway.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions