Whamcloud - gitweb
LU-2173 lod: QoS code to give up if no good OSP found
[fs/lustre-release.git] / lustre / lod / lod_qos.c
index 216555a..e5b4565 100644 (file)
@@ -1137,6 +1137,11 @@ static int lod_alloc_qos(const struct lu_env *env, struct lod_object *lo,
                        rc = 0;
                        break;
                }
+
+               if (rc) {
+                       /* no OST found on this iteration, give up */
+                       break;
+               }
        }
 
        if (unlikely(nfound != stripe_cnt)) {