|
@@ -1403,11 +1403,6 @@ old_sess_out:
|
|
|
|
|
|
out:
|
|
out:
|
|
stop = kthread_should_stop();
|
|
stop = kthread_should_stop();
|
|
- if (!stop && signal_pending(current)) {
|
|
|
|
- spin_lock_bh(&np->np_thread_lock);
|
|
|
|
- stop = (np->np_thread_state == ISCSI_NP_THREAD_SHUTDOWN);
|
|
|
|
- spin_unlock_bh(&np->np_thread_lock);
|
|
|
|
- }
|
|
|
|
/* Wait for another socket.. */
|
|
/* Wait for another socket.. */
|
|
if (!stop)
|
|
if (!stop)
|
|
return 1;
|
|
return 1;
|
|
@@ -1415,7 +1410,6 @@ exit:
|
|
iscsi_stop_login_thread_timer(np);
|
|
iscsi_stop_login_thread_timer(np);
|
|
spin_lock_bh(&np->np_thread_lock);
|
|
spin_lock_bh(&np->np_thread_lock);
|
|
np->np_thread_state = ISCSI_NP_THREAD_EXIT;
|
|
np->np_thread_state = ISCSI_NP_THREAD_EXIT;
|
|
- np->np_thread = NULL;
|
|
|
|
spin_unlock_bh(&np->np_thread_lock);
|
|
spin_unlock_bh(&np->np_thread_lock);
|
|
|
|
|
|
return 0;
|
|
return 0;
|