Skip to content

Commit 2768b2d

Browse files
Jan GlauberMartin Schwidefsky
authored andcommitted
[S390] qdio: reset outbound SBAL error states
Don't leave outbound SBALs in error state after a target full condition. Reset the state to not initialized to make the error handling consistent across all types of errors. Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 25f269f commit 2768b2d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/s390/cio/qdio_main.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ static void process_buffer_error(struct qdio_q *q, int count)
450450
qperf_inc(q, target_full);
451451
DBF_DEV_EVENT(DBF_INFO, q->irq_ptr, "OUTFULL FTC:%02x",
452452
q->first_to_check);
453-
return;
453+
goto set;
454454
}
455455

456456
DBF_ERROR("%4x BUF ERROR", SCH_NO(q));
@@ -460,6 +460,7 @@ static void process_buffer_error(struct qdio_q *q, int count)
460460
q->sbal[q->first_to_check]->element[14].sflags,
461461
q->sbal[q->first_to_check]->element[15].sflags);
462462

463+
set:
463464
/*
464465
* Interrupts may be avoided as long as the error is present
465466
* so change the buffer state immediately to avoid starvation.

0 commit comments

Comments
 (0)