[dm-devel] [PATCH 1/5] rbd: fix sync repair support
Mike Christie
mchristi at redhat.com
Tue Oct 11 21:36:51 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 bfec2c9..8f88154 100644
--- a/libmultipath/checkers/rbd.c
+++ b/libmultipath/checkers/rbd.c
@@ -552,7 +552,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