git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5f31fb
)
inetpeer: do not use zero refcnt for freed entries
author
Eric Dumazet
<eric.dumazet@gmail.com>
Wed, 16 Jun 2010 04:47:39 +0000
(21:47 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 16 Jun 2010 04:47:39 +0000
(21:47 -0700)
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>
No differences found