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

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