From: Jon Paul Maloy Date: Wed, 25 Mar 2015 16:07:25 +0000 (-0400) Subject: tipc: clean up handling of link congestion X-Git-Tag: omap-for-v4.2/o2_dc~131^2~139^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3127a0200d4a46cf279bb388cc0f71827cd60699;p=pandora-kernel.git tipc: clean up handling of link congestion After the recent changes in message importance handling it becomes possible to simplify handling of messages and sockets when we encounter link congestion. We merge the function tipc_link_cong() into link_schedule_user(), and simplify the code of the latter. The code should now be easier to follow, especially regarding return codes and handling of the message that caused the situation. In case the scheduling function is unable to pre-allocate a wakeup message buffer, it now returns -ENOBUFS, which is a more correct code than the previously used -EHOSTUNREACH. Reviewed-by: Ying Xue Reviewed-by: Erik Hugne Signed-off-by: Jon Maloy Signed-off-by: David S. Miller --- Reading git-diff-tree failed