]> git.baikalelectronics.ru Git - kernel.git/commit
inet: Remove explicit write references to sk/inet in ip_append_data
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 1 Mar 2011 02:36:47 +0000 (02:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2011 20:35:02 +0000 (12:35 -0800)
commit52898418bfe6f186b647745c10b0ea5392453818
tree723eb6971efd9603908354ef1642cb9c8ed04e23
parent3c7f4b4618e8ec1ce7c78540a20ae14762bb1a94
inet: 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>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_sock.h
net/ipv4/ip_output.c