[S390] qdio: continue polling for buffer state ERROR

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, February 10, 2010 - 9:00 am

Gitweb:     http://git.kernel.org/linus/4c52228d1b83ef67d4fa381c2ade70122c9e3c34
Commit:     4c52228d1b83ef67d4fa381c2ade70122c9e3c34
Parent:     deb0c98c7f6035d47a247e548384517a955314a5
Author:     Ursula Braun <ursula.braun@de.ibm.com>
AuthorDate: Tue Feb 9 09:46:07 2010 +0100
Committer:  Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
CommitDate: Tue Feb 9 09:46:23 2010 +0100

    [S390] qdio: continue polling for buffer state ERROR
    
    Inbound traffic handling may hang if next buffer to check is in
    state ERROR, polling is stopped and the final check for further
    available inbound buffers disregards buffers in state ERROR.
    This patch includes state ERROR when checking availability of
    more inbound buffers.
    
    Cc: Jan Glauber <jang@linux.vnet.ibm.com>
    Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
    Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
---
 drivers/s390/cio/qdio_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/s390/cio/qdio_main.c b/drivers/s390/cio/qdio_main.c
index 999fe80..5781c5d 100644
--- a/drivers/s390/cio/qdio_main.c
+++ b/drivers/s390/cio/qdio_main.c
@@ -531,7 +531,7 @@ static inline int qdio_inbound_q_done(struct qdio_q *q)
 	qdio_siga_sync_q(q);
 	get_buf_state(q, q->first_to_check, &state, 0);
 
-	if (state == SLSB_P_INPUT_PRIMED)
+	if (state == SLSB_P_INPUT_PRIMED || state == SLSB_P_INPUT_ERROR)
 		/* more work coming */
 		return 0;
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[S390] qdio: continue polling for buffer state ERROR, Linux Kernel Mailing ..., (Wed Feb 10, 9:00 am)