]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qdio: handle PENDING state for QEBSM devices
authorJulian Wiedmann <jwi@linux.ibm.com>
Mon, 3 Jun 2019 05:47:04 +0000 (07:47 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 7 Jun 2019 08:10:15 +0000 (10:10 +0200)
commitb34936990b7eb0efd6342d5c20257297acd1438a
tree65169fa16298fc9a2482fd3ab3f7264a47d5146f
parentb45b98cff9f517a019f0effcb12edbb44fec1a91
s390/qdio: handle PENDING state for QEBSM devices

When a CQ-enabled device uses QEBSM for SBAL state inspection,
get_buf_states() can return the PENDING state for an Output Queue.
get_outbound_buffer_frontier() isn't prepared for this, and any PENDING
buffer will permanently stall all further completion processing on this
Queue.

This isn't a concern for non-QEBSM devices, as get_buf_states() for such
devices will manually turn PENDING buffers into EMPTY ones.

Fixes: 931da7639847 ("qdio: support asynchronous delivery of storage blocks")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
drivers/s390/cio/qdio_main.c