X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Flod%2Flod_qos.c;h=3de777f7ba2a493abb9374ce129ccc35ecb5ca5a;hb=994aa414a4ffba54a62bff7ca8fecf7445127d6b;hp=d1985b841e5a8116fb5d3125764729393a18e6fa;hpb=f003d3eebbad43e7f8371af663e67c6e56bf5d9a;p=fs%2Flustre-release.git diff --git a/lustre/lod/lod_qos.c b/lustre/lod/lod_qos.c index d1985b8..3de777f 100644 --- a/lustre/lod/lod_qos.c +++ b/lustre/lod/lod_qos.c @@ -1443,6 +1443,9 @@ static int lod_alloc_qos(const struct lu_env *env, struct lod_object *lo, if (lod_qos_dev_is_full(sfs)) continue; + if (sfs->os_state & OS_STATE_DEGRADED) + continue; + /* Fail Check before osc_precreate() is called so we can only 'fail' single OSC. */ if (OBD_FAIL_CHECK(OBD_FAIL_MDS_OSC_PRECREATE) &&