From: Eric Dumazet Date: Wed, 16 Jun 2010 04:47:39 +0000 (-0700) Subject: inetpeer: do not use zero refcnt for freed entries X-Git-Tag: v2.6.36-rc1~571^2~562 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f2f89209500623ccb4713ec4af7de86fd30a9e4;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed