]> Pileus Git - ~andy/linux/commit
iscsi-target: Remove unnecessary wait_for_completion in iscsi_get_thread_set
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 7 Sep 2013 03:50:36 +0000 (20:50 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 11 Sep 2013 03:23:30 +0000 (20:23 -0700)
commit12e4101af431b66c734efef9eb359a0b8c6ad90c
tree7b05b095437c1732c4d9e90052c7d31de24952d2
parent5ab41ca467546d18dc793195a7c9f8e307311dbf
iscsi-target: Remove unnecessary wait_for_completion in iscsi_get_thread_set

This patch removes an unnecessary wait_for_completion within
iscsi_get_thread_set(), that would wait for 1 second before
trying to obtain an inactive struct iscsi_thread_set from
iscsi_get_ts_from_inactive_list().

Since iscsi_allocate_thread_sets() will already be adding the
newly allocated iscsi_thread_set to the inactive list directly,
there is no need to wait here.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_tq.c