]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drivers/vhost: Replace synchronize_rcu_bh() with synchronize_rcu()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 6 Nov 2018 01:14:53 +0000 (17:14 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 27 Nov 2018 17:21:37 +0000 (09:21 -0800)
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 <paulmck@linux.ibm.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: <kvm@vger.kernel.org>
Cc: <virtualization@lists.linux-foundation.org>
Cc: <netdev@vger.kernel.org>
drivers/vhost/net.c

index ab11b2bee2739f261790559237f8848cd3eb0174..564ead864028a3a4a989debf551e2b372c9eb270 100644 (file)
@@ -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);