Commit e759e1e
net: revert RTNL changes in unregister_netdevice_many_notify()
This patch reverts following changes:
83419b6 net: reduce RTNL hold duration in unregister_netdevice_many_notify() (part 2)
ae646f1 net: reduce RTNL hold duration in unregister_netdevice_many_notify() (part 1)
cfa579f net: no longer hold RTNL while calling flush_all_backlogs()
This caused issues in layers holding a private mutex:
cleanup_net()
rtnl_lock();
mutex_lock(subsystem_mutex);
unregister_netdevice();
rtnl_unlock(); // LOCKDEP violation
rtnl_lock();
I will revisit this in next cycle, opt-in for the new behavior
from safe contexts only.
Fixes: cfa579f ("net: no longer hold RTNL while calling flush_all_backlogs()")
Fixes: ae646f1 ("net: reduce RTNL hold duration in unregister_netdevice_many_notify() (part 1)")
Fixes: 83419b6 ("net: reduce RTNL hold duration in unregister_netdevice_many_notify() (part 2)")
Reported-by: [email protected]
Closes: https://lore.kernel.org/netdev/[email protected]/
Signed-off-by: Eric Dumazet <[email protected]>
Reviewed-by: Kuniyuki Iwashima <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 0f5697f commit e759e1e
1 file changed
+3
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10264 | 10264 | | |
10265 | 10265 | | |
10266 | 10266 | | |
10267 | | - | |
10268 | | - | |
10269 | | - | |
10270 | | - | |
10271 | | - | |
10272 | | - | |
10273 | | - | |
10274 | | - | |
10275 | | - | |
10276 | | - | |
10277 | | - | |
10278 | | - | |
10279 | 10267 | | |
10280 | 10268 | | |
10281 | | - | |
10282 | | - | |
10283 | | - | |
10284 | | - | |
10285 | | - | |
10286 | | - | |
10287 | | - | |
10288 | | - | |
10289 | | - | |
10290 | | - | |
10291 | | - | |
10292 | 10269 | | |
10293 | 10270 | | |
10294 | 10271 | | |
10295 | 10272 | | |
10296 | 10273 | | |
10297 | | - | |
| 10274 | + | |
10298 | 10275 | | |
10299 | 10276 | | |
10300 | 10277 | | |
| |||
11144 | 11121 | | |
11145 | 11122 | | |
11146 | 11123 | | |
11147 | | - | |
| 11124 | + | |
11148 | 11125 | | |
11149 | 11126 | | |
11150 | 11127 | | |
| |||
11789 | 11766 | | |
11790 | 11767 | | |
11791 | 11768 | | |
11792 | | - | |
11793 | | - | |
11794 | 11769 | | |
| 11770 | + | |
11795 | 11771 | | |
11796 | | - | |
11797 | 11772 | | |
11798 | 11773 | | |
11799 | 11774 | | |
| |||
11853 | 11828 | | |
11854 | 11829 | | |
11855 | 11830 | | |
11856 | | - | |
11857 | 11831 | | |
11858 | | - | |
11859 | 11832 | | |
11860 | 11833 | | |
11861 | 11834 | | |
| |||
0 commit comments