diff options
author | 2016-05-02 11:33:12 -0400 | |
---|---|---|
committer | 2016-05-04 12:39:35 -0700 | |
commit | 1535212c542285e430d44a75bfc0a99df610f598 (patch) | |
tree | 5d387e9c80a353fc7fc28656ecc24243c0b51b1a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | md-cluster: unregister thread if err happened (diff) | |
download | wireguard-linux-1535212c542285e430d44a75bfc0a99df610f598.tar.xz wireguard-linux-1535212c542285e430d44a75bfc0a99df610f598.zip |
md-cluster: fix locking when node joins cluster during message broadcast
If a node joins the cluster while a message broadcast
is under way, a lock issue could happen as follows.
For a cluster which included two nodes, if node A is
calling __sendmsg before up-convert CR to EX on ack,
and node B released CR on ack. But if a new node C
joins the cluster and it doesn't receive the message
which A sent before, so it could hold CR on ack before
A up-convert CR to EX on ack.
So a node joining the cluster should get an EX lock on
the "token" first to ensure no broadcast is ongoing,
then release it after held CR on ack.
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions