diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2020-09-23 10:36:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-23 12:07:54 -0700 |
commit | 7fb7fe5c7bacb1b1189b779f7f81c785bfc964a4 (patch) | |
tree | 675f2b9cba28732df8b1f0fed45f1e5be58858aa /drivers/s390/net/qeth_l3_main.c | |
parent | f3380b1edc1dd06d874227570a5fe0fbf50eb607 (diff) | |
download | linux-7fb7fe5c7bacb1b1189b779f7f81c785bfc964a4.tar.gz linux-7fb7fe5c7bacb1b1189b779f7f81c785bfc964a4.tar.bz2 linux-7fb7fe5c7bacb1b1189b779f7f81c785bfc964a4.zip |
s390/qeth: cancel cmds earlier during teardown
Originators of cmd IO typically hold the rtnl or conf_mutex to protect
against a concurrent teardown.
Since qeth_set_offline() already holds the conf_mutex, the main reason
why we still care about cancelling pending cmds is so that they release
the rtnl when we need it ourselves.
So move this step a little earlier into the teardown sequence.
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_l3_main.c')
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 0815b64c9797..410c35ca8f4a 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c @@ -1158,7 +1158,6 @@ static void qeth_l3_stop_card(struct qeth_card *card) if (card->state == CARD_STATE_SOFTSETUP) { card->state = CARD_STATE_DOWN; qeth_l3_clear_ip_htable(card, 1); - qeth_clear_ipacmd_list(card); } qeth_qdio_clear_card(card, 0); |