Commit 9f99fc6d authored by Eric Rossman's avatar Eric Rossman Committed by Linus Torvalds

[PATCH] s390: z90crypt reader task rescheduling.

z90crypt device driver changes:
 - Correct the condition for which the reader task is scheduled to run.
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 39d324ae
......@@ -2657,8 +2657,8 @@ z90crypt_reader_task(unsigned long ptr)
/**
* we use workavail = 2 to ensure 2 passes with nothing dequeued before
* exiting the loop. If pendingq_count == 0 after the loop, there is no
* work remaining on the queues.
* exiting the loop. If (pendingq_count+requestq_count) == 0 after the
* loop, there is no work remaining on the queues.
*/
resp_addr = 0;
workavail = 2;
......@@ -2697,7 +2697,7 @@ z90crypt_reader_task(unsigned long ptr)
spin_unlock_irq(&queuespinlock);
}
if (pendingq_count)
if (pendingq_count + requestq_count)
z90crypt_schedule_reader_timer();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment