]> git.baikalelectronics.ru Git - kernel.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)
commitf24130950ed02b2c836846cfd5e35283c7dc01fe
tree777ed0945b271b076af78d01b4f04b4da34d7f91
parent45f2d514853d6a1539b27c1e3ea2199c911db7b1
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