lib/ftl: Try to process more then one I/O completion

This patch allows to process more then one I/O
completion per reactor iteration.

Change-Id: Ib58013cd96c2b7fe378f175b34d58c6d1d219dcd
Signed-off-by: Wojciech Malikowski <wojciech.malikowski@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447175
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Young Tack Jin <youngtack.jin@circuitblvd.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Wojciech Malikowski 2019-03-06 08:19:39 -05:00 committed by Jim Harris
parent 5c6ca5b6e0
commit 3816651f4b

View File

@ -1525,7 +1525,7 @@ ftl_task_read(void *ctx)
}
}
return spdk_nvme_qpair_process_completions(qpair, 1);
return spdk_nvme_qpair_process_completions(qpair, 0);
}
int
@ -1543,7 +1543,7 @@ ftl_task_core(void *ctx)
}
ftl_process_writes(dev);
spdk_nvme_qpair_process_completions(qpair, 1);
spdk_nvme_qpair_process_completions(qpair, 0);
ftl_process_relocs(dev);
return 0;