[dm-devel] [PATCH 1/4] rbd: fix sync repair support
Mike Christie
mchristi at redhat.com
Wed Aug 31 21:44:27 UTC 2016
If sync was set we were calling check instead
of function passed in.
Signed-off-by: Mike Christie <mchristi at redhat.com>
---
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
More information about the dm-devel
mailing list