From: Benjamin LaHaise Date: Wed, 14 Dec 2005 07:22:32 +0000 (-0800) Subject: [AF_UNIX]: Remove superfluous reference counting in unix_stream_sendmsg X-Git-Tag: v2.6.16-rc1~474^2~22^2~9^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=830a1e5c212fb3fdc83b66359c780c3b3a294897;p=pandora-kernel.git [AF_UNIX]: Remove superfluous reference counting in unix_stream_sendmsg AF_UNIX stream socket performance on P4 CPUs tends to suffer due to a lot of pipeline flushes from atomic operations. The patch below removes the sock_hold() and sock_put() in unix_stream_sendmsg(). This should be safe as the socket still holds a reference to its peer which is only released after the file descriptor's final user invokes unix_release_sock(). The only consideration is that we must add a memory barrier before setting the peer initially. Signed-off-by: Benjamin LaHaise Signed-off-by: David S. Miller --- Reading git-diff-tree failed