From: Eric Dumazet Date: Thu, 12 Nov 2009 09:33:09 +0000 (+0000) Subject: inetpeer: Optimize inet_getid() X-Git-Tag: v2.6.33-rc1~388^2~376 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c1409a0a2b88585ec0c03f1de0aafa178c56313;p=pandora-kernel.git inetpeer: Optimize inet_getid() While investigating for network latencies, I found inet_getid() was a contention point for some workloads, as inet_peer_idlock is shared by all inet_getid() users regardless of peers. One way to fix this is to make ip_id_count an atomic_t instead of __u16, and use atomic_add_return(). In order to keep sizeof(struct inet_peer) = 64 on 64bit arches tcp_ts_stamp is also converted to __u32 instead of "unsigned long". Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed