aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-03-14 02:22:23 -0400
committerDavid S. Miller <davem@davemloft.net>2011-03-14 02:22:23 -0400
commit4e75db2e8ff2c97762e87f61f54d7cdeaab1a6b0 (patch)
treed6c0c4fff29a1f69afe2e262b31e579d1c6f0baf /net/ipv4
parentd8647b79c3b7e223ac051439d165bc8e7bbb832f (diff)
inetpeer: should use call_rcu() variant
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>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/inetpeer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/inetpeer.c b/net/ipv4/inetpeer.c
index 86b1d0878dff..dd1b20eca1a2 100644
--- a/net/ipv4/inetpeer.c
+++ b/net/ipv4/inetpeer.c
@@ -399,7 +399,7 @@ static void unlink_from_pool(struct inet_peer *p, struct inet_peer_base *base)
399 write_sequnlock_bh(&base->lock); 399 write_sequnlock_bh(&base->lock);
400 400
401 if (do_free) 401 if (do_free)
402 call_rcu_bh(&p->rcu, inetpeer_free_rcu); 402 call_rcu(&p->rcu, inetpeer_free_rcu);
403 else 403 else
404 /* The node is used again. Decrease the reference counter 404 /* The node is used again. Decrease the reference counter
405 * back. The loop "cleanup -> unlink_from_unused 405 * back. The loop "cleanup -> unlink_from_unused