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