summaryrefslogtreecommitdiffstats
path: root/net/core/drop_monitor.c
diff options
context:
space:
mode:
authorEric Dumazet2009-09-24 14:16:51 +0200
committerDavid S. Miller2009-10-05 09:21:54 +0200
commitb3a5b6cc7cab89dcc3301add750f88019d910a2b (patch)
treeb22e79b455ee2c9b3b131ef1dcf9d997a24fe2ce /net/core/drop_monitor.c
parentethtool: Remove support for obsolete string query operations (diff)
downloadkernel-qcow2-linux-b3a5b6cc7cab89dcc3301add750f88019d910a2b.tar.gz
kernel-qcow2-linux-b3a5b6cc7cab89dcc3301add750f88019d910a2b.tar.xz
kernel-qcow2-linux-b3a5b6cc7cab89dcc3301add750f88019d910a2b.zip
icmp: No need to call sk_write_space()
We can make icmp messages tx completion callback a litle bit faster. Setting SOCK_USE_WRITE_QUEUE sk flag tells sock_wfree() to not call sk_write_space() on a socket we know no thread is posssibly waiting for write space. (on per cpu kernel internal icmp sockets only) This avoids the sock_def_write_space() call and read_lock(&sk->sk_callback_lock)/read_unlock(&sk->sk_callback_lock) calls as well. We avoid three atomic ops. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/drop_monitor.c')
0 files changed, 0 insertions, 0 deletions