quorum: validate vote threshold against num_children even if read-pattern is fifo
commit834cb2ada5db197a11c99142d50222945d196fc0
authorWen Congyang <wency@cn.fujitsu.com>
Fri, 3 Jul 2015 06:45:06 +0000 (3 14:45 +0800)
committerMax Reitz <mreitz@redhat.com>
Fri, 4 Sep 2015 19:00:32 +0000 (4 21:00 +0200)
treecb92ccf3ac78e8fbc4599aedca2f5aa1b07d2576
parent909c260c71d1bee7018e17034580ffd0743508db
quorum: validate vote threshold against num_children even if read-pattern is fifo

We need to use threshold to check if too many write operation fails.
If threshold is larger than num children, we always get write error
event even if all write operations success.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Message-id: 55962F72.3060003@cn.fujitsu.com
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/quorum.c