aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_l2_main.c
diff options
context:
space:
mode:
authorJulian Wiedmann <jwi@linux.ibm.com>2020-09-23 10:36:57 +0200
committerDavid S. Miller <davem@davemloft.net>2020-09-23 12:07:54 -0700
commit7fb7fe5c7bacb1b1189b779f7f81c785bfc964a4 (patch)
tree675f2b9cba28732df8b1f0fed45f1e5be58858aa /drivers/s390/net/qeth_l2_main.c
parents390/qeth: tighten ucast IP locking (diff)
downloadlinux-dev-7fb7fe5c7bacb1b1189b779f7f81c785bfc964a4.tar.xz
linux-dev-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 '')
-rw-r--r--drivers/s390/net/qeth_l2_main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c
index e12ac32b8b47..cbd1ab71e785 100644
--- a/drivers/s390/net/qeth_l2_main.c
+++ b/drivers/s390/net/qeth_l2_main.c
@@ -315,10 +315,8 @@ static void qeth_l2_stop_card(struct qeth_card *card)
cancel_work_sync(&card->rx_mode_work);
qeth_l2_drain_rx_mode_cache(card);
- if (card->state == CARD_STATE_SOFTSETUP) {
- qeth_clear_ipacmd_list(card);
+ if (card->state == CARD_STATE_SOFTSETUP)
card->state = CARD_STATE_DOWN;
- }
qeth_qdio_clear_card(card, 0);
qeth_drain_output_queues(card);