Now replaced by iscsit_shutdown_tpg_np_login_threads. Signed-off-by: David Disseldorp <ddiss@xxxxxxx> --- drivers/target/iscsi/iscsi_target_tpg.c | 34 --------------------------------- 1 file changed, 34 deletions(-) diff --git a/drivers/target/iscsi/iscsi_target_tpg.c b/drivers/target/iscsi/iscsi_target_tpg.c index ec9eb78..60c62a0 100644 --- a/drivers/target/iscsi/iscsi_target_tpg.c +++ b/drivers/target/iscsi/iscsi_target_tpg.c @@ -171,40 +171,6 @@ void iscsit_put_tpg(struct iscsi_portal_group *tpg) mutex_unlock(&tpg->tpg_access_lock); } -static void iscsit_clear_tpg_np_login_thread( - struct iscsi_tpg_np *tpg_np, - struct iscsi_portal_group *tpg, - bool shutdown) -{ - if (!tpg_np->tpg_np) { - pr_err("struct iscsi_tpg_np->tpg_np is NULL!\n"); - return; - } - - if (shutdown) - tpg_np->tpg_np->enabled = false; - iscsit_reset_np_thread(tpg_np->tpg_np, tpg_np, tpg, shutdown); -} - -static void iscsit_clear_tpg_np_login_threads( - struct iscsi_portal_group *tpg, - bool shutdown) -{ - struct iscsi_tpg_np *tpg_np; - - spin_lock(&tpg->tpg_np_lock); - list_for_each_entry(tpg_np, &tpg->tpg_gnp_list, tpg_np_list) { - if (!tpg_np->tpg_np) { - pr_err("struct iscsi_tpg_np->tpg_np is NULL!\n"); - continue; - } - spin_unlock(&tpg->tpg_np_lock); - iscsit_clear_tpg_np_login_thread(tpg_np, tpg, shutdown); - spin_lock(&tpg->tpg_np_lock); - } - spin_unlock(&tpg->tpg_np_lock); -} - static void iscsit_shutdown_tpg_np_login_thread( struct iscsi_tpg_np *tpg_np, struct iscsi_portal_group *tpg) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html