diff options
author | Benjamin LaHaise <benjamin.c.lahaise@intel.com> | 2005-12-14 08:22:32 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-03 22:10:45 +0100 |
commit | 830a1e5c212fb3fdc83b66359c780c3b3a294897 (patch) | |
tree | 232215af3774d78aa179adb1612bfa5257af181d /include/net/inet6_connection_sock.h | |
parent | [NET]: Avoid atomic xchg() for non-error case (diff) | |
download | linux-830a1e5c212fb3fdc83b66359c780c3b3a294897.tar.xz linux-830a1e5c212fb3fdc83b66359c780c3b3a294897.zip |
[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 <benjamin.c.lahaise@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet6_connection_sock.h')
0 files changed, 0 insertions, 0 deletions