Julian Wiedmann b39544c6e0 s390/qdio: pass up count of ready-to-process SBALs
When qdio_{in,out}bound_q_moved() scans a queue for pending work, it
currently only returns a boolean to its caller. The interface to the
upper-layer-drivers (qdio_kick_handler() and qdio_get_next_buffers())
then re-calculates the number of pending SBALs from the
q->first_to_check and q->first_to_kick cursors.

Refactor this so that whenever get_{in,out}bound_buffer_frontier()
adjusted the queue's first_to_check cursor, it also returns the
corresponding count of ready-to-process SBALs (and 0 else).
A subsequent patch will then make use of this additional information.

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>
2019-04-10 17:47:24 +02:00
..
2019-02-05 14:29:23 +01:00
2018-07-17 07:27:55 +02:00
2018-07-17 07:27:55 +02:00
2018-10-31 08:54:16 -07:00
2018-07-17 07:27:55 +02:00
2018-07-17 07:27:55 +02:00
2018-04-10 07:38:59 +02:00
2018-04-10 07:38:59 +02:00
2018-02-05 07:34:52 +01:00
2019-03-29 07:23:49 +01:00