tipc: standardize recvmsg routine
authorYing Xue <ying.xue@windriver.com>
Fri, 17 Jan 2014 01:50:07 +0000 (09:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jan 2014 03:10:34 +0000 (19:10 -0800)
commit9bbb4ecc681968b7cf781e08e3918604c3b699d3
tree7c0c3aa49a645be67a43bdec3b3e354714dc1f61
parent391a6dd1da3979be7b6fc0d9ded1b0b906bd068f
tipc: standardize recvmsg routine

Standardize the behaviour of waiting for events in TIPC recvmsg()
so that all variables of socket or port structures are protected
within socket lock, allowing the process of calling recvmsg() 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