]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: cancel cmds earlier during teardown
authorJulian Wiedmann <jwi@linux.ibm.com>
Wed, 23 Sep 2020 08:36:57 +0000 (10:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Sep 2020 19:07:54 +0000 (12:07 -0700)
commit254487b3ed3ca54a2a5eb6ecbae94588f44e5674
tree675f2b9cba28732df8b1f0fed45f1e5be58858aa
parent42d2f52afe9e48e831e903d0872aa09651b3cc39
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>
drivers/s390/net/qeth_core.h
drivers/s390/net/qeth_core_main.c
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c