Whamcloud - gitweb
LU-6047 obd: remove client Size on MDS support
[fs/lustre-release.git] / lustre / lov / lov_request.c
index 6867fa3..3f23941 100644 (file)
@@ -222,13 +222,6 @@ static int common_attr_done(struct lov_request_set *set)
                 CERROR("No stripes had valid attrs\n");
                 rc = -EIO;
         }
-        if ((set->set_oi->oi_oa->o_valid & OBD_MD_FLEPOCH) &&
-            (set->set_oi->oi_md->lsm_stripe_count != attrset)) {
-                /* When we take attributes of some epoch, we require all the
-                 * ost to be active. */
-                CERROR("Not all the stripes had valid attrs\n");
-                GOTO(out, rc = -EIO);
-        }
 
         tmp_oa->o_oi = set->set_oi->oi_oa->o_oi;
         memcpy(set->set_oi->oi_oa, tmp_oa, sizeof(*set->set_oi->oi_oa));
@@ -291,9 +284,6 @@ int lov_prep_getattr_set(struct obd_export *exp, struct obd_info *oinfo,
 
                if (!lov_check_and_wait_active(lov, loi->loi_ost_idx)) {
                        CDEBUG(D_HA, "lov idx %d inactive\n", loi->loi_ost_idx);
-                       if (oinfo->oi_oa->o_valid & OBD_MD_FLEPOCH)
-                               /* SOM requires all the OSTs to be active. */
-                               GOTO(out_set, rc = -EIO);
                        continue;
                }