|
|
38852f |
---
|
|
|
38852f |
libmultipath/checkers/tur.c | 9 +++------
|
|
|
38852f |
1 file changed, 3 insertions(+), 6 deletions(-)
|
|
|
38852f |
|
|
|
38852f |
Index: multipath-tools-130222/libmultipath/checkers/tur.c
|
|
|
38852f |
===================================================================
|
|
|
38852f |
--- multipath-tools-130222.orig/libmultipath/checkers/tur.c
|
|
|
38852f |
+++ multipath-tools-130222/libmultipath/checkers/tur.c
|
|
|
38852f |
@@ -409,7 +409,6 @@ libcheck_check (struct checker * c)
|
|
|
38852f |
ct->running = 0;
|
|
|
38852f |
MSG(c, MSG_TUR_TIMEOUT);
|
|
|
38852f |
tur_status = PATH_DOWN;
|
|
|
38852f |
- ct->state = PATH_UNCHECKED;
|
|
|
38852f |
} else {
|
|
|
38852f |
condlog(3, "%d:%d: tur checker not finished",
|
|
|
38852f |
TUR_DEVT(ct));
|
|
|
38852f |
@@ -426,12 +425,10 @@ libcheck_check (struct checker * c)
|
|
|
38852f |
pthread_mutex_unlock(&ct->lock);
|
|
|
38852f |
} else {
|
|
|
38852f |
if (ct->thread) {
|
|
|
38852f |
- /* pthread cancel failed. continue in sync mode */
|
|
|
38852f |
pthread_mutex_unlock(&ct->lock);
|
|
|
38852f |
- condlog(3, "%d:%d: tur thread not responding, "
|
|
|
38852f |
- "using sync mode", TUR_DEVT(ct));
|
|
|
38852f |
- return tur_check(c->fd, c->timeout, c->message,
|
|
|
38852f |
- ct->wwid);
|
|
|
38852f |
+ condlog(3, "%d:%d: tur thread not responding, ",
|
|
|
38852f |
+ TUR_DEVT(ct));
|
|
|
38852f |
+ return PATH_DOWN;
|
|
|
38852f |
}
|
|
|
38852f |
/* Start new TUR checker */
|
|
|
38852f |
ct->state = PATH_UNCHECKED;
|