Eric Dumazet 5f2f892095 inetpeer: do not use zero refcnt for freed entries
Followup of commit aa1039e73cc2 (inetpeer: RCU conversion)

Unused inet_peer entries have a null refcnt.

Using atomic_inc_not_zero() in rcu lookups is not going to work for
them, and slow path is taken.

Fix this using -1 marker instead of 0 for deleted entries.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-06-15 21:47:39 -07:00
..
2010-04-20 16:37:13 -07:00
2010-06-03 03:21:52 -07:00
2010-05-31 00:24:11 -07:00
2010-06-11 18:37:08 -07:00
2010-06-15 18:12:44 -07:00
2010-06-03 03:21:52 -07:00
2010-05-17 23:23:13 -07:00
2010-04-20 16:37:13 -07:00
2010-05-29 00:18:48 -07:00
2010-04-20 16:37:13 -07:00
2009-07-12 12:22:34 -07:00
2010-05-17 17:39:28 -07:00