]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qdio: consolidate index tracking for queue scan
authorJulian Wiedmann <jwi@linux.ibm.com>
Mon, 8 Apr 2019 11:32:12 +0000 (13:32 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 18 Apr 2019 08:10:32 +0000 (10:10 +0200)
commitb5fe6bab9540a5b74f23ed470d726ab2b7c53b5b
tree2d29631382de324ec33fddf64a6dd394d5024fe2
parent47bfa47b659a7cf2a1b34b7ad3d095470e13b2c4
s390/qdio: consolidate index tracking for queue scan

qdio.ko offers a small number of high-level functions to drive the
scanning of a QDIO queue for ready-to-process SBALs:
qdio_get_next_buffers(), __[ti]qdio_inbound_processing() and
__qdio_outbound_processing().

Let each of those functions maintain the 'start' index for their current
scan, and pass it to lower-level helpers as needed. This improves the
code's overall layering, and allows us to eliminate the additional
first_to_kick cursor with a follow-on patch.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/qdio_main.c