diff options
author | Jon Maloy <jon.maloy@ericsson.com> | 2018-01-08 21:03:24 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-09 12:35:57 -0500 |
commit | 4ea5dab541717fc55cad609360b100857af770b0 (patch) | |
tree | 57ab48f7b7bb99a56a81f4a4644659a0da2a94c8 /drivers | |
parent | 8d5dee21f6f01f4632c10b750709a1383eefc7aa (diff) | |
download | linux-4ea5dab541717fc55cad609360b100857af770b0.tar.bz2 |
tipc: let group member stay in JOINED mode if unable to reclaim
We handle a corner case in the function tipc_group_update_rcv_win().
During extreme pessure it might happen that a message receiver has all
its active senders in RECLAIMING or REMITTED mode, meaning that there
is nobody to reclaim advertisements from if an additional sender tries
to go active.
Currently we just set the new sender to ACTIVE anyway, hence at least
theoretically opening up for a receiver queue overflow by exceeding the
MAX_ACTIVE limit. The correct solution to this is to instead add the
member to the pending queue, while letting the oldest member in that
queue revert to JOINED state.
In this commit we refactor the code for handling message arrival from
a JOINED member, both to make it more comprehensible and to cover the
case described above.
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions