From: Benjamin Marzinski Date: Fri, 18 May 2012 22:33:26 +0000 (-0500) Subject: multipath: fix select_no_path_retry for flushing devices. X-Git-Tag: upstream/0.5.0~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c78058e2d9e4ee2e197b65a8c2a59ef5d31718b;p=platform%2Fupstream%2Fmultipath-tools.git multipath: fix select_no_path_retry for flushing devices. 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 --- diff --git a/libmultipath/propsel.c b/libmultipath/propsel.c index 9c06203..5548ca1 100644 --- a/libmultipath/propsel.c +++ b/libmultipath/propsel.c @@ -415,6 +415,7 @@ select_no_path_retry(struct multipath *mp) 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;