net: udp_unhash() can test if sk is hashed
authorEric Dumazet <dada1@cosmosbay.com>
Tue, 25 Nov 2008 21:55:15 +0000 (13:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Nov 2008 21:55:15 +0000 (13:55 -0800)
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 <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found