X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Flod%2Flod_object.c;h=02c14c21af2db221a9e1ab8760cbb35a0c10daf2;hp=5462d79d0b01c5566d53819a58722951c3716ac9;hb=e88992a3b5b9d9ba0a69883671f1b5888514e05d;hpb=8cffc4a0255d007d358e7e1ed843bacb4d9c7f7c diff --git a/lustre/lod/lod_object.c b/lustre/lod/lod_object.c index 5462d79..02c14c2 100644 --- a/lustre/lod/lod_object.c +++ b/lustre/lod/lod_object.c @@ -2206,6 +2206,12 @@ static int lod_object_lock(const struct lu_env *env, /* striped directory lock */ for (i = 0; i < lo->ldo_stripenr; i++) { struct lustre_handle lockh; + struct ldlm_res_id *res_id; + + res_id = &lod_env_info(env)->lti_res_id; + fid_build_reg_res_name(lu_object_fid(&lo->ldo_stripe[i]->do_lu), + res_id); + einfo->ei_res_id = res_id; LASSERT(lo->ldo_stripe[i]); rc = dt_object_lock(env, lo->ldo_stripe[i], &lockh, einfo,