From: Eric Dumazet Date: Tue, 25 Nov 2008 21:55:15 +0000 (-0800) Subject: net: udp_unhash() can test if sk is hashed X-Git-Tag: v2.6.29-rc1~581^2~486 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=723b46108f8ee75b61ce703d0c9225e4f537bc46;p=pandora-kernel.git net: udp_unhash() can test if sk is hashed Impact: Optimization Like done in inet_unhash(), we can avoid taking a chain lock if socket is not hashed in udp_unhash() Triggered by close(socket(AF_INET, SOCK_DGRAM, 0)); Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed