diff options
author | Ying Xue <ying.xue@windriver.com> | 2015-03-25 18:09:40 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-25 11:43:32 -0400 |
commit | bc14b8d6a98eb0747126cd517b468148b9e1c7ac (patch) | |
tree | 188f60c5051b38a7d32a072b88c90767b5f39f91 /net/tipc | |
parent | 358e048d670a0feeb030effd1a3611cc6288fa70 (diff) | |
download | op-kernel-dev-bc14b8d6a98eb0747126cd517b468148b9e1c7ac.zip op-kernel-dev-bc14b8d6a98eb0747126cd517b468148b9e1c7ac.tar.gz |
tipc: fix a link reset issue due to retransmission failures
When a node joins a cluster while we are transmitting a fragment
stream over the broadcast link, it's missing the preceding fragments
needed to build a meaningful message. As a result, the node has to
drop it. However, as the fragment message is not acknowledged to
its sender before it's dropped, it accidentally causes link reset
of retransmission failure on the node.
Reported-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Tested-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/bcast.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c index 5aff084..5230739 100644 --- a/net/tipc/bcast.c +++ b/net/tipc/bcast.c @@ -523,11 +523,13 @@ receive: tipc_bclink_unlock(net); tipc_node_unlock(node); } else if (msg_user(msg) == MSG_FRAGMENTER) { - tipc_buf_append(&node->bclink.reasm_buf, &buf); - if (unlikely(!buf && !node->bclink.reasm_buf)) - goto unlock; tipc_bclink_lock(net); bclink_accept_pkt(node, seqno); + tipc_buf_append(&node->bclink.reasm_buf, &buf); + if (unlikely(!buf && !node->bclink.reasm_buf)) { + tipc_bclink_unlock(net); + goto unlock; + } bcl->stats.recv_fragments++; if (buf) { bcl->stats.recv_fragmented++; |