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)
commit391a6dd1da3979be7b6fc0d9ded1b0b906bd068f
treee51f79377cd0bd655e65be9d551ea03e6acc9c3a
parent3f40504f7ee419eda0068e55e0ee2622e1fce40b
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