s390/qdio: simplify ACK tracking
authorJulian Wiedmann <jwi@linux.ibm.com>
Mon, 25 Nov 2019 13:18:29 +0000 (14:18 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 10 Feb 2020 11:49:35 +0000 (12:49 +0100)
commit0b6f499022b6a87d04f56edd2bf863ea76923206
treeedae4fea767436a891a55f09442fb2e2fbcb0681
parentfcd98d4002539f1e381916fc1b6648938c1eac76
s390/qdio: simplify ACK tracking

Current code uses a 'polling' flag to keep track of whether an Input
Queue has any ACKed SBALs. QEBSM devices might have multiple ACKed
SBALs, and those are tracked separately with 'ack_count'.

By also setting ack_count for non-QEBSM devices (to a fixed value of 1),
we can use 'ack_count != 0' as replacement for the polling flag.

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