tcp: add note about default case in qpair_abort_request()

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I2f3741596be2f06b36894306203214a4ef096d1a
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16694
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Konrad Sztyber 2023-02-06 16:44:24 +01:00 committed by Tomasz Zawadzki
parent 43121e8693
commit 7db282dc26

View File

@ -3323,6 +3323,12 @@ _nvmf_tcp_qpair_abort_request(void *ctx)
break;
default:
/* Requests in other states are either un-abortable (e.g.
* TRANSFERRING_CONTROLLER_TO_HOST) or should never end up here, as they're
* immediately transitioned to other states in nvmf_tcp_req_process() (e.g.
* READY_TO_EXECUTE). But it is fine to end up here, as we'll simply complete the
* abort request with the bit0 of dword0 set (command not aborted).
*/
break;
}