aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/iscsi/iscsi_target_tpg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_tpg.c')
-rw-r--r--drivers/target/iscsi/iscsi_target_tpg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/target/iscsi/iscsi_target_tpg.c b/drivers/target/iscsi/iscsi_target_tpg.c
index ca1811858afd..71126761af5f 100644
--- a/drivers/target/iscsi/iscsi_target_tpg.c
+++ b/drivers/target/iscsi/iscsi_target_tpg.c
@@ -188,7 +188,7 @@ static void iscsit_clear_tpg_np_login_thread(
188 iscsit_reset_np_thread(tpg_np->tpg_np, tpg_np, tpg, shutdown); 188 iscsit_reset_np_thread(tpg_np->tpg_np, tpg_np, tpg, shutdown);
189} 189}
190 190
191void iscsit_clear_tpg_np_login_threads( 191static void iscsit_clear_tpg_np_login_threads(
192 struct iscsi_portal_group *tpg, 192 struct iscsi_portal_group *tpg,
193 bool shutdown) 193 bool shutdown)
194{ 194{
@@ -275,8 +275,6 @@ int iscsit_tpg_del_portal_group(
275 tpg->tpg_state = TPG_STATE_INACTIVE; 275 tpg->tpg_state = TPG_STATE_INACTIVE;
276 spin_unlock(&tpg->tpg_state_lock); 276 spin_unlock(&tpg->tpg_state_lock);
277 277
278 iscsit_clear_tpg_np_login_threads(tpg, true);
279
280 if (iscsit_release_sessions_for_tpg(tpg, force) < 0) { 278 if (iscsit_release_sessions_for_tpg(tpg, force) < 0) {
281 pr_err("Unable to delete iSCSI Target Portal Group:" 279 pr_err("Unable to delete iSCSI Target Portal Group:"
282 " %hu while active sessions exist, and force=0\n", 280 " %hu while active sessions exist, and force=0\n",