If sync was set we were calling check instead
of function passed in.

Signed-off-by: Mike Christie <[email protected]>
---
 libmultipath/checkers/rbd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmultipath/checkers/rbd.c b/libmultipath/checkers/rbd.c
index 7f540ad..f7b1087 100644
--- a/libmultipath/checkers/rbd.c
+++ b/libmultipath/checkers/rbd.c
@@ -554,7 +554,7 @@ static int rbd_exec_fn(struct checker *c, thread_fn *fn)
        int rbd_status, r;
 
        if (c->sync)
-               return rbd_check(ct, c->message);
+               return fn(ct, c->message);
        /*
         * Async mode
         */
-- 
2.7.2

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Reply via email to