Re: [PATCH 2/5] net: Remove explicit write references to sk/inet in ip_append_data

Eric Dumazet
2011-03-01T05:31:31Z

Le lundi 28 février 2011 à 19:41 +0800, Herbert Xu a écrit :
> net: Remove explicit write references to sk/inet in ip_append_data
>
> In order to allow simultaneous calls to ip_append_data on the same
> socket, it must not modify any shared state in sk or inet (other
> than those that are designed to allow that such as atomic counters).
>
> This patch abstracts out write references to sk and inet_sk in
> ip_append_data and its friends so that we may use the underlying
> code in parallel.
>
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
> ---
>
> include/net/inet_sock.h | 23 ++--
> net/ipv4/ip_output.c | 238 ++++++++++++++++++++++++++++--------------------
> 2 files changed, 154 insertions(+), 107 deletions(-)

Acked-by: Eric Dumazet <eric.dumazet@gmail.com>