Skip to content

Commit 4e75db2

Browse files
Eric Dumazetdavem330
authored andcommitted
inetpeer: should use call_rcu() variant
After commit 7b46ac4 (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>
1 parent d8647b7 commit 4e75db2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/ipv4/inetpeer.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ static void unlink_from_pool(struct inet_peer *p, struct inet_peer_base *base)
399399
write_sequnlock_bh(&base->lock);
400400

401401
if (do_free)
402-
call_rcu_bh(&p->rcu, inetpeer_free_rcu);
402+
call_rcu(&p->rcu, inetpeer_free_rcu);
403403
else
404404
/* The node is used again. Decrease the reference counter
405405
* back. The loop "cleanup -> unlink_from_unused

0 commit comments

Comments
 (0)