Commit 8edfe2e
xen/netfront: fix waiting for xenbus state change
Commit 822fb18 ("xen-netfront: wait xenbus state change when load
module manually") added a new wait queue to wait on for a state change
when the module is loaded manually. Unfortunately there is no wakeup
anywhere to stop that waiting.
Instead of introducing a new wait queue rename the existing
module_unload_q to module_wq and use it for both purposes (loading and
unloading).
As any state change of the backend might be intended to stop waiting
do the wake_up_all() in any case when netback_changed() is called.
Fixes: 822fb18 ("xen-netfront: wait xenbus state change when load module manually")
Cc: <[email protected]> #4.18
Signed-off-by: Juergen Gross <[email protected]>
Reviewed-by: Boris Ostrovsky <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent f74dd48 commit 8edfe2e
1 file changed
+10
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
| 90 | + | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
1332 | 1331 | | |
1333 | 1332 | | |
1334 | 1333 | | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | | - | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
1340 | 1339 | | |
1341 | 1340 | | |
1342 | 1341 | | |
| |||
2010 | 2009 | | |
2011 | 2010 | | |
2012 | 2011 | | |
| 2012 | + | |
| 2013 | + | |
2013 | 2014 | | |
2014 | 2015 | | |
2015 | 2016 | | |
2016 | 2017 | | |
2017 | 2018 | | |
2018 | | - | |
2019 | | - | |
2020 | 2019 | | |
2021 | | - | |
2022 | 2020 | | |
2023 | 2021 | | |
2024 | 2022 | | |
| |||
2034 | 2032 | | |
2035 | 2033 | | |
2036 | 2034 | | |
2037 | | - | |
2038 | 2035 | | |
2039 | 2036 | | |
2040 | 2037 | | |
2041 | 2038 | | |
2042 | | - | |
2043 | 2039 | | |
2044 | 2040 | | |
2045 | 2041 | | |
| |||
2147 | 2143 | | |
2148 | 2144 | | |
2149 | 2145 | | |
2150 | | - | |
| 2146 | + | |
2151 | 2147 | | |
2152 | 2148 | | |
2153 | 2149 | | |
2154 | 2150 | | |
2155 | 2151 | | |
2156 | 2152 | | |
2157 | | - | |
| 2153 | + | |
2158 | 2154 | | |
2159 | 2155 | | |
2160 | 2156 | | |
| |||
0 commit comments