inetpeer: should use call_rcu() variant
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 14 Mar 2011 06:22:23 +0000 (23:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2011 06:22:23 +0000 (23:22 -0700)
After commit 7b46ac4e77f3224a (inetpeer: Don't disable BH for initial
fast RCU lookup.), we should use call_rcu() to wait proper RCU grace
period.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inetpeer.c

index 86b1d0878dff11d901264ae09010414082038eec..dd1b20eca1a25fd845e03ecc077a1e0f43412eff 100644 (file)
@@ -399,7 +399,7 @@ static void unlink_from_pool(struct inet_peer *p, struct inet_peer_base *base)
        write_sequnlock_bh(&base->lock);
 
        if (do_free)
-               call_rcu_bh(&p->rcu, inetpeer_free_rcu);
+               call_rcu(&p->rcu, inetpeer_free_rcu);
        else
                /* The node is used again.  Decrease the reference counter
                 * back.  The loop "cleanup -> unlink_from_unused