In the echo_client's prep/commit test ioo_bufcnt could be out of
sync with the npages given to obd_{prep,commit}rw.
GOTO(out, ret = -ENOMEM);
obdo_to_ioobj(oa, &ioo);
GOTO(out, ret = -ENOMEM);
obdo_to_ioobj(oa, &ioo);
- ioo.ioo_bufcnt = npages;
/* XXX this can't be the best.. */
memset(oti, 0, sizeof(*oti));
/* XXX this can't be the best.. */
memset(oti, 0, sizeof(*oti));
+ ioo.ioo_bufcnt = npages;
ret = obd_preprw(rw, exp, oa, 1, &ioo, npages, rnb, lnb, oti);
if (ret != 0)
ret = obd_preprw(rw, exp, oa, 1, &ioo, npages, rnb, lnb, oti);
if (ret != 0)