]> 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)
commita96226944b0aa2b783cfdcf2229f2f7e3e83a481
tree675f2b9cba28732df8b1f0fed45f1e5be58858aa
parent68c9ef274987450f16766992ad09de5e27db6197
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