On 03.02.2014 20:11, Benoît Canet wrote:
From: Benoît Canet <ben...@irqsave.net>
Makes a vote to select error if any.
Signed-off-by: Benoit Canet <ben...@irqsave.net>
---
block/quorum.c | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
See my reply to V10: You're only counting results which are not 0 (i.e.,
errors); therefore, 0 will never reach majority. If "error" is set to
true (that is, if any error occured), "error_votes" will only contain
values below 0 (i.e., errors), therefore, in that case, an error will be
returned, regardless of how many calls succeeded.
Max