]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qdio: simplify overlap calculation on Input refill
authorJulian Wiedmann <jwi@linux.ibm.com>
Tue, 21 Apr 2020 08:22:01 +0000 (10:22 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 20 May 2020 08:22:50 +0000 (10:22 +0200)
commiteb93486c50ca65a950a90b6565e51cc5871bd163
tree4588e8ccb219ebf855f9544cb0e9f32b3f16dd24
parent553ee9cd1daa0ab1504140a8941945bb4457f2a2
s390/qdio: simplify overlap calculation on Input refill

Refilling the Input Queue requires additional checks, as the refilled
SBALs can overlap with the ACKs that qdio maintains on the queue.

This code path is way too complex, and does a whole bunch of wrap-around
checks that the modulo arithmetic in sub_buf() takes care of by itself.
So shrink down all that code into a few lines of equivalent
functionality.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/cio/qdio_main.c