nvmf: complete resubmitted requests
If a request gets resubmitted and is completed immediately (i.e. the processing function returns SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE), the upper layer needs to be notified via spdk_nvmf_request_complete(). Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I236d6e68d1d7d83afdaa30d8bb07e2b133f43155 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10788 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
686b9984b3
commit
d88fa8c11e
@ -242,16 +242,24 @@ static void
|
|||||||
nvmf_ctrlr_process_io_cmd_resubmit(void *arg)
|
nvmf_ctrlr_process_io_cmd_resubmit(void *arg)
|
||||||
{
|
{
|
||||||
struct spdk_nvmf_request *req = arg;
|
struct spdk_nvmf_request *req = arg;
|
||||||
|
int rc;
|
||||||
|
|
||||||
nvmf_ctrlr_process_io_cmd(req);
|
rc = nvmf_ctrlr_process_io_cmd(req);
|
||||||
|
if (rc == SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE) {
|
||||||
|
spdk_nvmf_request_complete(req);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
nvmf_ctrlr_process_admin_cmd_resubmit(void *arg)
|
nvmf_ctrlr_process_admin_cmd_resubmit(void *arg)
|
||||||
{
|
{
|
||||||
struct spdk_nvmf_request *req = arg;
|
struct spdk_nvmf_request *req = arg;
|
||||||
|
int rc;
|
||||||
|
|
||||||
nvmf_ctrlr_process_admin_cmd(req);
|
rc = nvmf_ctrlr_process_admin_cmd(req);
|
||||||
|
if (rc == SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE) {
|
||||||
|
spdk_nvmf_request_complete(req);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user