+34
−0
Loading
If the request is queued and is not in completing, we can abort it safely. If the state of the request is NEED_BUFFERING, the request is queued to tqpair->group->group.pending_buf_queue. If the state of the request is DATA_TRANSFER_TO_CONTROLLER_PENDING, the request is queued to rqpair->pending_rdma_read_queue. If the state of the request is DATA_TRANSFER_TO_HOST_PENDING, the request is queued to rqpair->pending_rdma_write_queue. According to the current state, dequeue from the corresponding queue, and then call an new helper function nvmf_rdma_request_set_abort_status(). Using helper function will be easier to read. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Id0327f4d2c4728a11b3b6bbc7c2252f0b35263cf Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3012 Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@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>