summaryrefslogtreecommitdiffstats
path: root/lib/crc-itu-t.c
diff options
context:
space:
mode:
authorEric Dumazet2010-06-16 06:47:39 +0200
committerDavid S. Miller2010-06-16 06:47:39 +0200
commit5f2f89209500623ccb4713ec4af7de86fd30a9e4 (patch)
tree6a48b8183ac6d60d8ce6a9c907de1ea35c1ca918 /lib/crc-itu-t.c
parentnetpoll: Use correct primitives for RCU dereferencing (diff)
downloadkernel-qcow2-linux-5f2f89209500623ccb4713ec4af7de86fd30a9e4.tar.gz
kernel-qcow2-linux-5f2f89209500623ccb4713ec4af7de86fd30a9e4.tar.xz
kernel-qcow2-linux-5f2f89209500623ccb4713ec4af7de86fd30a9e4.zip
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>
Diffstat (limited to 'lib/crc-itu-t.c')
0 files changed, 0 insertions, 0 deletions