diff options
| author | Doug Oucharek <[email protected]> | 2016-08-16 16:19:33 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-08-21 15:57:39 +0200 |
| commit | 72e62b6c7cebf894738a8e49bb62492717bde4f5 (patch) | |
| tree | 504010d66d2f62673bcc5972be7bb73b608286a1 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | ba5301428e4536fdb8844507c62a1c7289556525 (diff) | |
staging: lustre: lnet: Stop Infinite CON RACE Condition
In current code, when a CON RACE occurs, the passive side will
let the node with the higher NID value win the race.
We have a field case where a node can have a "stuck"
connection which never goes away and is the trigger of a
never-ending loop of re-connections.
This patch introduces a counter to how many times a
connection in a connecting state has been the cause of a CON RACE
rejection. After 20 times (constant MAX_CONN_RACES_BEFORE_ABORT),
we assume the connection is stuck and let the other side (with
lower NID) win.
Signed-off-by: Doug Oucharek <[email protected]>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7646
Reviewed-on: http://review.whamcloud.com/19430
Reviewed-by: Amir Shehata <[email protected]>
Reviewed-by: Andreas Dilger <[email protected]>
Reviewed-by: Oleg Drokin <[email protected]>
Signed-off-by: James Simmons <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions