Skip to contentSkip to conversation

s390: z90crypt reader task rescheduling.

PATCH New Martin Schwidefsky 1 participant 1 message Mar 2, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 6/9 s390: z90crypt reader task rescheduling.

[patch 6/9] s390: z90crypt reader task rescheduling.

From: Eric Rossman <[email protected]>

z90crypt device driver changes:
- Correct the condition for which the reader task is scheduled to run.

diffstat:

 drivers/s390/crypto/z90main.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/s390/crypto/z90main.c +3 -3
diff -urN linux-2.6/drivers/s390/crypto/z90main.c linux-2.6-patched/drivers/s390/crypto/z90main.c
@@ -2657,8 +2657,8 @@
 
 	/**
 	 * 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 @@
 		spin_unlock_irq(&queuespinlock);
 	}
 
-	if (pendingq_count)
+	if (pendingq_count + requestq_count)
 		z90crypt_schedule_reader_timer();
 }