diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2019-03-28 10:43:46 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2019-04-10 17:47:25 +0200 |
commit | 65e4f776385ac5cab021ad8d992e851375305906 (patch) | |
tree | 566a4e829338583e5b3109bf9670af4f5e472958 /mm/init-mm.c | |
parent | s390/qdio: pass up count of ready-to-process SBALs (diff) | |
download | linux-dev-65e4f776385ac5cab021ad8d992e851375305906.tar.xz linux-dev-65e4f776385ac5cab021ad8d992e851375305906.zip |
s390/qdio: simplify SBAL range calculation
When passing a range of ready-to-process SBALs to the upper-layer
driver, use the available 'count' instead of calculating the distance
between the first_to_check and first_to_kick cursors.
This simplifies the logic of the queue-scan path, and opens up the
possibility of scanning all 128 SBALs in one go (as determining the
reported count no longer requires wrap-around safe arithmetic on the
queue's cursors).
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>
Diffstat (limited to 'mm/init-mm.c')
0 files changed, 0 insertions, 0 deletions