mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
drivers/vhost: Replace synchronize_rcu_bh() with synchronize_rcu()
Now that synchronize_rcu() waits for bh-disable regions of code as well as RCU read-side critical sections, synchronize_rcu_bh() can be replaced by synchronize_rcu(). This commit therefore makes this change. Signed-off-by: Paul E. McKenney <[email protected]> Cc: "Michael S. Tsirkin" <[email protected]> Cc: Jason Wang <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Cc: <[email protected]>
This commit is contained in:
parent
16f1150084
commit
d05faa5f1a
1 changed files with 1 additions and 1 deletions
|
|
@ -1359,7 +1359,7 @@ static int vhost_net_release(struct inode *inode, struct file *f)
|
|||
if (rx_sock)
|
||||
sockfd_put(rx_sock);
|
||||
/* Make sure no callbacks are outstanding */
|
||||
synchronize_rcu_bh();
|
||||
synchronize_rcu();
|
||||
/* We do an extra flush before freeing memory,
|
||||
* since jobs can re-queue themselves. */
|
||||
vhost_net_flush(n);
|
||||
|
|
|
|||
Loading…
Reference in a new issue