From: Allan Stephens Date: Sun, 17 Apr 2011 17:06:23 +0000 (-0400) Subject: tipc: Fix issues with fragmentation of an existing message buffer X-Git-Tag: v3.0-rc1~377^2~111^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77561557447d3be586e701815e261c93c11ded00;p=pandora-kernel.git tipc: Fix issues with fragmentation of an existing message buffer Modifies the routine that fragments an existing message buffer to use similar logic to that used when generating fragments from an iovec. The routine now creates a complete chain of fragments and adds them to the link transmit queue as a unit, so that the link sends all fragments or none; this prevents the incomplete transmission of a fragmented message that might otherwise result because of link congestion or memory exhaustion. This change also ensures that the counter recording the number of fragmented messages sent by the link is now incremented only if the message is actually sent. Signed-off-by: Allan Stephens Signed-off-by: Paul Gortmaker --- Reading git-diff-tree failed