]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: standardize sendmsg routine of connected socket
authorYing Xue <ying.xue@windriver.com>
Fri, 17 Jan 2014 01:50:06 +0000 (09:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jan 2014 03:10:34 +0000 (19:10 -0800)
commit44de8e67828abda0b94465cdd4a25ab9e3ec3ccd
treee51f79377cd0bd655e65be9d551ea03e6acc9c3a
parente7835c89409bdbc5f1f496ee6004235f841a2342
tipc: standardize sendmsg routine of connected socket

Standardize the behaviour of waiting for events in TIPC send_packet()
so that all variables of socket or port structures are protected within
socket lock, allowing the process of calling sendmsg() to be woken up
at appropriate time.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c