mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
netpoll: make __netpoll_cleanup non-block
Like the previous patch, slave_disable_netpoll() and __netpoll_cleanup() may be called with read_lock() held too, so we should make them non-block, by moving the cleanup and kfree() to call_rcu_bh() callbacks. Cc: "David S. Miller" <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
47be03a28c
commit
38e6bc185d
5 changed files with 38 additions and 23 deletions
|
|
@ -267,11 +267,7 @@ void br_netpoll_disable(struct net_bridge_port *p)
|
|||
|
||||
p->np = NULL;
|
||||
|
||||
/* Wait for transmitting packets to finish before freeing. */
|
||||
synchronize_rcu_bh();
|
||||
|
||||
__netpoll_cleanup(np);
|
||||
kfree(np);
|
||||
__netpoll_free_rcu(np);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue