]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c07d4ecf7d5c37e6857bd0f9faf1e832df837f1
tree0e1a7863d37b590d7cb86e5fb187a7d80d7bbaa7
parentd68eeec12ca421370da577c04135a7ac4e32100e
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