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:
Bart Van Assche
2014-06-04 15:17:59 +00:00
parent fbbb9f05a1
commit a7648c418e

View File

@@ -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)