diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2008-11-25 22:55:15 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 22:55:15 +0100 |
commit | 723b46108f8ee75b61ce703d0c9225e4f537bc46 (patch) | |
tree | f33c3d2b0e4f204a6b3f97ed198e1431a10ca448 /net/sched | |
parent | net: Make sure BHs are disabled in sock_prot_inuse_add() (diff) | |
download | linux-723b46108f8ee75b61ce703d0c9225e4f537bc46.tar.xz linux-723b46108f8ee75b61ce703d0c9225e4f537bc46.zip |
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 <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions