[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100203.085249.98326242.davem@davemloft.net>
Date: Wed, 03 Feb 2010 08:52:49 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: johny@...mco.com.cn
Cc: kuznet@....inr.ac.ru, netdev@...r.kernel.org, jmorris@...ei.org,
kaber@...eworks.de, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2.6.27.7-9-pae #7 SMP 1/1] networking tcp: Writing tcp
socket be atomic
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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists