diff options
author | Julian Wiedmann | 2020-07-14 16:22:57 +0200 |
---|---|---|
committer | David S. Miller | 2020-07-14 14:53:45 -0700 |
commit | dbdd04d311afb9d64b0722e8a8a00b359625e8de (patch) | |
tree | 4ed4d39ecae0ad851a3f8c1379e4d599d6a70fb8 /drivers/s390 | |
parent | 101e314d7ff385a842c9fb0ddfe074024f4803f2 (diff) |
s390/qeth: fine-tune errno when cmds are cancelled
If we cancel all pending cmds (eg. when tearing down the device), don't
blame it on an IO error.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/net/qeth_core_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index c0f551602a5a..7d51be6665cc 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c @@ -969,7 +969,7 @@ void qeth_clear_ipacmd_list(struct qeth_card *card) spin_lock_irqsave(&card->lock, flags); list_for_each_entry(iob, &card->cmd_waiter_list, list) - qeth_notify_cmd(iob, -EIO); + qeth_notify_cmd(iob, -ECANCELED); spin_unlock_irqrestore(&card->lock, flags); } EXPORT_SYMBOL_GPL(qeth_clear_ipacmd_list); |