X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Flov%2Flov_request.c;fp=lustre%2Flov%2Flov_request.c;h=dc03ce663e45b10d46b0f07294b91a8b6cb04b3b;hb=23fde1f89bec0adf4f7181ccce5a236eac371a38;hp=a96bfbb647f7c6ba9378aede6df67641acc94b78;hpb=0e4e1f61d1196df7415ee143804debcfe0ee88dd;p=fs%2Flustre-release.git diff --git a/lustre/lov/lov_request.c b/lustre/lov/lov_request.c index a96bfbb..dc03ce6 100644 --- a/lustre/lov/lov_request.c +++ b/lustre/lov/lov_request.c @@ -361,19 +361,20 @@ int lov_prep_statfs_set(struct obd_device *obd, struct obd_info *oinfo, continue; } + /* skip targets that have been explicitely disabled by the + * administrator */ + if (!lov->lov_tgts[i]->ltd_exp) { + CDEBUG(D_HA, "lov idx %d administratively disabled\n", + i); + continue; + } + if (!lov->lov_tgts[i]->ltd_active) lov_check_and_wait_active(lov, i); - /* skip targets that have been explicitely disabled by the - * administrator */ - if (!lov->lov_tgts[i]->ltd_exp) { - CDEBUG(D_HA, "lov idx %d administratively disabled\n", i); - continue; - } - - OBD_ALLOC(req, sizeof(*req)); - if (req == NULL) - GOTO(out_set, rc = -ENOMEM); + OBD_ALLOC(req, sizeof(*req)); + if (req == NULL) + GOTO(out_set, rc = -ENOMEM); OBD_ALLOC(req->rq_oi.oi_osfs, sizeof(*req->rq_oi.oi_osfs)); if (req->rq_oi.oi_osfs == NULL) {