[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] [PATCH] multipath: fix select_no_path_retry for flushing devices.
- From: Benjamin Marzinski <bmarzins redhat com>
- To: device-mapper development <dm-devel redhat com>
- Cc: Christophe Varoqui <christophe varoqui gmail com>
- Subject: [dm-devel] [PATCH] multipath: fix select_no_path_retry for flushing devices.
- Date: Fri, 18 May 2012 17:33:26 -0500
The select_no_path_retry code was falling through if a flush was
in progress, and so it wasn't honoring flush_on_last_del.
Signed-off-by: Benjamin Marzinski <bmarzins redhat com>
---
libmultipath/propsel.c | 1 +
1 file changed, 1 insertion(+)
Index: multipath-tools-120403/libmultipath/propsel.c
===================================================================
--- multipath-tools-120403.orig/libmultipath/propsel.c
+++ multipath-tools-120403/libmultipath/propsel.c
@@ -415,6 +415,7 @@ select_no_path_retry(struct multipath *m
if (mp->flush_on_last_del == FLUSH_IN_PROGRESS) {
condlog(0, "flush_on_last_del in progress");
mp->no_path_retry = NO_PATH_RETRY_FAIL;
+ return 0;
}
if (mp->mpe && mp->mpe->no_path_retry != NO_PATH_RETRY_UNDEF) {
mp->no_path_retry = mp->mpe->no_path_retry;
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]