aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/s390/cio/io_sch.h
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2018-02-07 13:18:19 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-02-22 10:09:25 +0100
commit770b55c995d171f026a9efb85e71e3b1ea47b93d (patch)
tree0d6bbd77ce82fd0727c2dcdb272de2ecc7a3bf89 /drivers/s390/cio/io_sch.h
parents390/cio: fix ccw_device_start_timeout API (diff)
downloadwireguard-linux-770b55c995d171f026a9efb85e71e3b1ea47b93d.tar.xz
wireguard-linux-770b55c995d171f026a9efb85e71e3b1ea47b93d.zip
s390/cio: fix return code after missing interrupt
When a timeout occurs for users of ccw_device_start_timeout we will stop the IO and call the drivers int handler with the irb pointer set to ERR_PTR(-ETIMEDOUT). Sometimes however we'd set the irb pointer to ERR_PTR(-EIO) which is not intended. Just set the correct value in all codepaths. Reported-by: Julian Wiedmann <jwi@linux.vnet.ibm.com> Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/io_sch.h')
-rw-r--r--drivers/s390/cio/io_sch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/cio/io_sch.h b/drivers/s390/cio/io_sch.h
index af571d8d6925..90e4e3a7841b 100644
--- a/drivers/s390/cio/io_sch.h
+++ b/drivers/s390/cio/io_sch.h
@@ -157,6 +157,7 @@ struct ccw_device_private {
unsigned long intparm; /* user interruption parameter */
struct qdio_irq *qdio_data;
struct irb irb; /* device status */
+ int async_kill_io_rc;
struct senseid senseid; /* SenseID info */
struct pgid pgid[8]; /* path group IDs per chpid*/
struct ccw1 iccws[2]; /* ccws for SNID/SID/SPGID commands */