From: Eric Dumazet Date: Thu, 24 Sep 2009 12:16:51 +0000 (+0000) Subject: icmp: No need to call sk_write_space() X-Git-Tag: v2.6.33-rc1~388^2~944 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3a5b6cc7cab89dcc3301add750f88019d910a2b;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed