From: Ying Xue Date: Fri, 17 Jan 2014 01:50:05 +0000 (+0800) Subject: tipc: standardize sendmsg routine of connectionless socket X-Git-Tag: v3.14-rc1~94^2~116^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f40504f7ee419eda0068e55e0ee2622e1fce40b;p=pandora-kernel.git tipc: standardize sendmsg routine of connectionless socket Comparing the behaviour of how to wait for events in TIPC sendmsg() with other stacks, the TIPC implementation might be perceived as different, and sometimes even incorrect. For instance, sk_sleep() and tport->congested variables associated with socket are exposed without socket lock protection while wait_event_interruptible_timeout() accesses them. So standardizing it with similar implementation in other stacks can help us correct these errors which the process of calling sendmsg() cannot be woken up event if an expected event arrive at socket or improperly woken up although the wake condition doesn't match. Signed-off-by: Ying Xue Reviewed-by: Jon Maloy Signed-off-by: David S. Miller --- Reading git-diff-tree failed