Blame SOURCES/0184-rbd-fix-sync-repair-support.patch

4728c8
From d1bda720153b4978121fbae40f82d2f4b9aff997 Mon Sep 17 00:00:00 2001
4728c8
From: Mike Christie <mchristi@redhat.com>
4728c8
Date: Thu, 25 Aug 2016 01:34:11 -0500
4728c8
Subject: [PATCH 08/11] rbd: fix sync repair support
4728c8
4728c8
If sync was set we were calling check instead
4728c8
of function passed in.
4728c8
4728c8
Signed-off-by: Mike Christie <mchristi@redhat.com>
4728c8
---
4728c8
 libmultipath/checkers/rbd.c | 2 +-
4728c8
 1 file changed, 1 insertion(+), 1 deletion(-)
4728c8
4728c8
diff --git a/libmultipath/checkers/rbd.c b/libmultipath/checkers/rbd.c
4728c8
index 6f1b53a..76f4005 100644
4728c8
--- a/libmultipath/checkers/rbd.c
4728c8
+++ b/libmultipath/checkers/rbd.c
4728c8
@@ -554,7 +554,7 @@ static int rbd_exec_fn(struct checker *c, thread_fn *fn)
4728c8
 	int rbd_status, r;
4728c8
 
4728c8
 	if (c->sync)
4728c8
-		return rbd_check(ct, c->message);
4728c8
+		return fn(ct, c->message);
4728c8
 	/*
4728c8
 	 * Async mode
4728c8
 	 */
4728c8
-- 
4728c8
1.8.3.1
4728c8