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-06-10 23:31:35 -07:00
2010-02-22 16:20:22 -08:00
2010-06-10 23:31:35 -07:00
2010-06-10 23:31:35 -07:00
2010-06-10 22:47:08 -07:00
2010-02-22 16:20:22 -08:00
2010-06-10 23:31:35 -07:00
2008-10-07 08:38:24 +11:00
2009-09-14 17:03:01 -07:00
2010-06-10 23:31:35 -07:00
2010-06-10 23:31:35 -07:00
2009-03-02 03:00:15 -08:00
2009-03-02 03:00:15 -08:00
2010-06-15 11:56:19 -07:00
2010-06-15 11:56:19 -07:00
2009-05-25 22:44:59 -07:00
2010-06-15 11:56:19 -07:00
2010-06-10 23:31:35 -07:00
2010-01-17 19:16:02 -08:00