Commits
Andrey Savochkin authored and Pavel Emelianov committed e6649e8423b
Fix for over-optimization of OTHERSOCKBUF accounting. For those sockets there is no protection by socket sock. Bug was provoked by optimization of charging/uncharging othersockbufs: diff-ubc-tcpsndopt-20060429 In brief idea is the following: optimization is based on assumption that soket is always locked by lock_sock and protected from using the socket by more than one users simultaneously. But current assumption is wrong for datagram sockets (for example PF_UNIX ones), that are not locked in the majority of cases. This provokes race condition between 2 users of ths same dgram socket. As for tcp sockets - they are always locked (or it can be done so), - this prevents races.