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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 02:05:58 +0000 (19:05 -0700)
commita8fdde1cb830e560208af42b6c10750137f53eb3
tree6d0331ae62daba32a17f21fbed2892f6de93b7b1
parent44f82312fe9113bab6642f4d0eab6b1b7902b6e1
qmi_wwan: avoid RCU stalls on device disconnect when in QMAP mode

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>
drivers/net/usb/qmi_wwan.c