tipc: simplify group LEAVE sequence
authorJon Maloy <jon.maloy@ericsson.com>
Mon, 8 Jan 2018 20:03:27 +0000 (21:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jan 2018 17:35:57 +0000 (12:35 -0500)
commitc2b22bcf2e18a279afd80a8c57e936014acf3348
tree0e1a7863d37b590d7cb86e5fb187a7d80d7bbaa7
parent7ad32bcb7855ae8a60a8cf98e1b9da77cfdba4d0
tipc: simplify group LEAVE sequence

After the changes in the previous commit the group LEAVE sequence
can be simplified.

We now let the arrival of a LEAVE message unconditionally issue a group
DOWN event to the user. When a topology WITHDRAW event is received, the
member, if it still there, is set to state LEAVING, but we only issue a
group DOWN event when the link to the peer node is gone, so that no
LEAVE message is to be expected.

Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/group.c