Network portals for disable TPGs are no longer enabled unconditionally. This change allows for them to be enabled when the parent TPG is enabled. Signed-off-by: David Disseldorp <ddiss@xxxxxxx> --- drivers/target/iscsi/iscsi_target_tpg.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/target/iscsi/iscsi_target_tpg.c b/drivers/target/iscsi/iscsi_target_tpg.c index 45006d7..5b5d044 100644 --- a/drivers/target/iscsi/iscsi_target_tpg.c +++ b/drivers/target/iscsi/iscsi_target_tpg.c @@ -377,6 +377,15 @@ int iscsit_tpg_enable_portal_group(struct iscsi_portal_group *tpg) goto err; } + spin_unlock(&tpg->tpg_state_lock); + + ret = iscsit_enable_tpg_np_login_threads(tpg); + if (ret < 0) { + pr_err("failed to enable np(s) for target portal group\n"); + return ret; + } + + spin_lock(&tpg->tpg_state_lock); tpg->tpg_state = TPG_STATE_ACTIVE; spin_unlock(&tpg->tpg_state_lock); -- 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