mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 04:31:26 +00:00
ib_srpt: Avoid triggering a SCSI command timeout after login
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5567 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2059,6 +2059,16 @@ static int srpt_compl_thread(void *arg)
|
||||
ch = arg;
|
||||
BUG_ON(!ch);
|
||||
|
||||
while (ch->state < CH_LIVE) {
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
if (srpt_process_completion(ch, poll_budget) >= poll_budget)
|
||||
cond_resched();
|
||||
else
|
||||
schedule();
|
||||
}
|
||||
|
||||
srpt_process_wait_list(ch);
|
||||
|
||||
while (ch->state < CH_DISCONNECTED) {
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
if (srpt_process_completion(ch, poll_budget) >= poll_budget)
|
||||
|
||||
Reference in New Issue
Block a user