+ if (unlikely(nfound != stripe_cnt)) {
+ /*
+ * when the decision to use weighted algorithm was made
+ * we had enough appropriate OSPs, but this state can
+ * change anytime (no space on OST, broken connection, etc)
+ * so it's possible OSP won't be able to provide us with
+ * an object due to just changed state
+ */
+ LCONSOLE_INFO("wanted %d, found %d\n", stripe_cnt, nfound);
+ for (i = 0; i < nfound; i++) {
+ LASSERT(lo->ldo_stripe[i]);
+ lu_object_put(env, &lo->ldo_stripe[i]->do_lu);
+ lo->ldo_stripe[i] = NULL;