]> asedeno.scripts.mit.edu Git - linux.git/commit
s390/qdio: add sanity checks to the fast-requeue path
authorJulian Wiedmann <jwi@linux.ibm.com>
Thu, 11 Jul 2019 16:17:36 +0000 (18:17 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 23 Jul 2019 08:43:55 +0000 (10:43 +0200)
commita6ec414a4dd529eeac5c3ea51c661daba3397108
tree777ed0945b271b076af78d01b4f04b4da34d7f91
parent6abe28197024f732f1e298b1a593505282505857
s390/qdio: add sanity checks to the fast-requeue path

If the device driver were to send out a full queue's worth of SBALs,
current code would end up discovering the last of those SBALs as PRIMED
and erroneously skip the SIGA-w. This immediately stalls the queue.

Add a check to not attempt fast-requeue in this case. While at it also
make sure that the state of the previous SBAL was successfully extracted
before inspecting it.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
drivers/s390/cio/qdio_main.c