+28
−15
Loading
Factor out abort operation on the specific qpair into a helper function nvmf_qpair_abort_request(). After this refactoring, nvmf_ctrlr_abort_done() calls _nvmf_request_complete() only if the passed status is zero. If the passed status is not zero, nvmf_qpair_abort() is responsible for calling _nvmf_request_complete() instead. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I4828c0e21cc7650210675661d6e1c0fd54c7a2cb Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2991 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by:
Michael Haeuptle <michaelhaeuptle@gmail.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>