Update 'no_path_retry' correctly for failed paths
[multipath-tools/.git] / libmultipath / structs_vec.c
index 384afb7..7073915 100644 (file)
@@ -306,8 +306,7 @@ set_no_path_retry(struct multipath *mpp)
 {
        mpp->retry_tick = 0;
        mpp->nr_active = pathcount(mpp, PATH_UP) + pathcount(mpp, PATH_GHOST);
-       if (mpp->nr_active > 0)
-               select_no_path_retry(mpp);
+       select_no_path_retry(mpp);
 
        switch (mpp->no_path_retry) {
        case NO_PATH_RETRY_UNDEF: