diff options
-rw-r--r-- | drivers/target/iscsi/iscsi_target.c | 1 | ||||
-rw-r--r-- | drivers/target/iscsi/iscsi_target_tpg.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index 46588c85d39b..9189bc0a87ae 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c | |||
@@ -460,6 +460,7 @@ int iscsit_del_np(struct iscsi_np *np) | |||
460 | spin_lock_bh(&np->np_thread_lock); | 460 | spin_lock_bh(&np->np_thread_lock); |
461 | np->np_exports--; | 461 | np->np_exports--; |
462 | if (np->np_exports) { | 462 | if (np->np_exports) { |
463 | np->enabled = true; | ||
463 | spin_unlock_bh(&np->np_thread_lock); | 464 | spin_unlock_bh(&np->np_thread_lock); |
464 | return 0; | 465 | return 0; |
465 | } | 466 | } |
diff --git a/drivers/target/iscsi/iscsi_target_tpg.c b/drivers/target/iscsi/iscsi_target_tpg.c index ca1811858afd..1431e8400d28 100644 --- a/drivers/target/iscsi/iscsi_target_tpg.c +++ b/drivers/target/iscsi/iscsi_target_tpg.c | |||
@@ -184,7 +184,8 @@ static void iscsit_clear_tpg_np_login_thread( | |||
184 | return; | 184 | return; |
185 | } | 185 | } |
186 | 186 | ||
187 | tpg_np->tpg_np->enabled = false; | 187 | if (shutdown) |
188 | tpg_np->tpg_np->enabled = false; | ||
188 | iscsit_reset_np_thread(tpg_np->tpg_np, tpg_np, tpg, shutdown); | 189 | iscsit_reset_np_thread(tpg_np->tpg_np, tpg_np, tpg, shutdown); |
189 | } | 190 | } |
190 | 191 | ||