[PATCH 2/2] If we have more than one colo-compare, we can only destroy the lock when we delete the last one.

2020-05-11 Thread quweijie
From: quweijie Signed-off-by: quweijie --- net/colo-compare.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/colo-compare.c b/net/colo-compare.c index 10c0239..ee878f6 100644 --- a/net/colo-compare.c +++ b/net/colo-compare.c @@ -1313,8 +1313,10 @@ static void

[PATCH 1/2] When del child, next_child_index need to subtract 1. Otherwise, the index will get bigger and bigger.

2020-05-11 Thread quweijie
From: quweijie Signed-off-by: quweijie --- block/quorum.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/quorum.c b/block/quorum.c index 6d7a56b..a8272fe 100644 --- a/block/quorum.c +++ b/block/quorum.c @@ -1096,6 +1096,7 @@ static void quorum_del_child(BlockDriverState *bs