• Ying Xue's avatar
    tipc: standardize sendmsg routine of connectionless socket · 3f40504f
    Ying Xue authored
    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: default avatarYing Xue <ying.xue@windriver.com>
    Reviewed-by: default avatarJon Maloy <jon.maloy@ericsson.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3f40504f
socket.c 50.4 KB