[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <492C5F53.2090901@cosmosbay.com>
Date: Tue, 25 Nov 2008 21:25:55 +0100
From: Eric Dumazet <dada1@...mosbay.com>
To: "David S. Miller" <davem@...emloft.net>
CC: Linux Netdev List <netdev@...r.kernel.org>
Subject: [PATCH] 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@...mosbay.com>
---
net/ipv4/udp.c | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
View attachment "udp_unhash.patch" of type "text/plain" (1011 bytes)
Powered by blists - more mailing lists