qmi_wwan: avoid RCU stalls on device disconnect when in QMAP mode
authorReinhard Speyerer <rspmn@arcor.de>
Wed, 12 Jun 2019 17:03:15 +0000 (19:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Jul 2019 07:04:26 +0000 (09:04 +0200)
commit4f8544dd54b12faefec3f6c58c2dad28c6b4d37f
treec4a0e9330aa34870682937e7447dd3f50e738d8a
parent0d34ea83b1c13beb6f939760fe9c7b6b73617997
qmi_wwan: avoid RCU stalls on device disconnect when in QMAP mode

[ Upstream commit a8fdde1cb830e560208af42b6c10750137f53eb3 ]

Switch qmimux_unregister_device() and qmi_wwan_disconnect() to
use unregister_netdevice_queue() and unregister_netdevice_many()
instead of unregister_netdevice(). This avoids RCU stalls which
have been observed on device disconnect in certain setups otherwise.

Fixes: c6adf77953bc ("net: usb: qmi_wwan: add qmap mux protocol support")
Cc: Daniele Palmas <dnlplm@gmail.com>
Signed-off-by: Reinhard Speyerer <rspmn@arcor.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/usb/qmi_wwan.c