From 58cfc4f8b838eaa901a5509de21914e09b0c83d2 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 25 Aug 2015 21:39:39 +0000 Subject: [PATCH] iscsi: Only use thread pool for TCP but not for iSER Signed-off-by: Yan Burman git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6480 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/session.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/iscsi-scst/kernel/session.c b/iscsi-scst/kernel/session.c index 1a6980df5..52dd682be 100644 --- a/iscsi-scst/kernel/session.c +++ b/iscsi-scst/kernel/session.c @@ -98,10 +98,12 @@ static int iscsi_session_alloc(struct iscsi_target *target, goto err; } - err = iscsi_threads_pool_get(&session->scst_sess->acg->acg_cpu_mask, - &session->sess_thr_pool); - if (err != 0) - goto err_unreg; + if (!session->sess_params.rdma_extensions) { + err = iscsi_threads_pool_get(&session->scst_sess->acg->acg_cpu_mask, + &session->sess_thr_pool); + if (err != 0) + goto err_unreg; + } #ifdef CONFIG_SCST_PROC kfree(name);