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)
commit6bcf74e2d15c8339f0e4a0f0613638873098e85f
tree2d29631382de324ec33fddf64a6dd394d5024fe2
parent5b2ad270529ff8abfd8a324ceece1ae1704875a0
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