tipc: remove leaving group member from all lists
commit3f42f5fe31c8715a34064bfd7b788488d1ea2f7c
authorJon Maloy <jon.maloy@ericsson.com>
Mon, 18 Dec 2017 17:13:34 +0000 (18 18:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Dec 2017 18:16:40 +0000 (18 13:16 -0500)
treebb6f596e37ae0cd2f972a9ef3b710d46a441b4c2
parent234833991e14681f61cbfd93e65a5c976089cf11
tipc: remove leaving group member from all lists

A group member going into state LEAVING should never go back to any
other state before it is finally deleted. However, this might happen
if the socket needs to send out a RECLAIM message during this interval.
Since we forget to remove the leaving member from the group's 'active'
or 'pending' list, the member might be selected for reclaiming, change
state to RECLAIMING, and get stuck in this state instead of being
deleted. This might lead to suppression of the expected 'member down'
event to the receiver.

We fix this by removing the member from all lists, except the RB tree,
at the moment it goes into state LEAVING.

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