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