Messages in this thread | | | Date | Wed, 03 Feb 2010 08:52:49 -0800 (PST) | Subject | Re: [PATCH 2.6.27.7-9-pae #7 SMP 1/1] networking tcp: Writing tcp socket be atomic | From | David Miller <> |
| |
Locking belongs inside of the application, not in the kernel.
As evidenced by the fact that you had to add new socket options, the application needs to be modified anyways.
It's therefore just as easy to add the appropriate locking to the sequences where the application writes over the TCP socket. And it avoids having to modify the kernel at all.
| |