lib/iscsi: fix iscsi connection schedule
If the qualified core wasn't found, then we should compare spdk_env_get_core_count() with i, instead of lcore. Signed-off-by: Li Feng <fengli@smartx.com> Change-Id: Ie92f56712b7f0e51636008fe12fff5584b6be8ab Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456415 Reviewed-by: wuzhouhui <wuzhouhui14@mails.ucas.ac.cn> 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
b7080d47c5
commit
02363ccb3b
@ -1452,7 +1452,7 @@ spdk_iscsi_conn_schedule(struct spdk_iscsi_conn *conn)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lcore >= spdk_env_get_core_count()) {
|
if (i >= spdk_env_get_core_count()) {
|
||||||
SPDK_ERRLOG("Unable to schedule connection on allowed CPU core. Scheduling on first core instead.\n");
|
SPDK_ERRLOG("Unable to schedule connection on allowed CPU core. Scheduling on first core instead.\n");
|
||||||
lcore = spdk_env_get_first_core();
|
lcore = spdk_env_get_first_core();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user