diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2019-02-12 18:33:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-12 13:14:24 -0500 |
commit | 54daaca7024d5419dad64db8a3e65f6b38f24b7f (patch) | |
tree | 3d1bd6c7ec8627230d9acc92a9e6e6df97e1deff /drivers/s390/net/qeth_core.h | |
parent | 0951c6babf49d2f2429cbfbea5cf792d427ecc6a (diff) | |
download | blackbird-op-linux-54daaca7024d5419dad64db8a3e65f6b38f24b7f.tar.gz blackbird-op-linux-54daaca7024d5419dad64db8a3e65f6b38f24b7f.zip |
s390/qeth: cancel cmd on early error
When sending cmds via qeth_send_control_data(), qeth puts the request
on the IO channel and then blocks on the reply object until the response
has been received.
If the IO completes with error, there will never be a response and we
block until the reply-wait hits its timeout. For this case, connect the
request buffer to its reply object, so that we can immediately cancel
the wait.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_core.h')
-rw-r--r-- | drivers/s390/net/qeth_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/net/qeth_core.h b/drivers/s390/net/qeth_core.h index 07840f9c0bb3..83f710336685 100644 --- a/drivers/s390/net/qeth_core.h +++ b/drivers/s390/net/qeth_core.h @@ -595,6 +595,7 @@ struct qeth_channel; struct qeth_cmd_buffer { enum qeth_cmd_buffer_state state; struct qeth_channel *channel; + struct qeth_reply *reply; unsigned char *data; int rc; void (*callback)(struct qeth_card *card, struct qeth_channel *channel, |