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, 14 Jul 2019 06:09:43 +0000 (08:09 +0200)
commit382719d4a0c815d2313a3d707088f6f02e3e161b
treef8c91d5c9223e9f805aa3fd2590c2cf95fd3287d
parent4bd6849a7cd76bfd1f59cece6b798232c31f41eb
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