Whamcloud - gitweb
LU-1187 mdt: unlink remote directory
[fs/lustre-release.git] / lustre / osp / osp_object.c
index 695a31e..2426be1 100644 (file)
@@ -369,6 +369,7 @@ static int osp_object_init(const struct lu_env *env, struct lu_object *o,
 
                po->opo_obj.do_ops = &osp_md_obj_ops;
                o->lo_header->loh_attr |= LOHA_REMOTE;
+               po->opo_obj.do_lock_ops = &osp_md_lock_ops;
                /* Do not need get attr for new object */
                if (!(conf != NULL && (conf->loc_flags & LOC_F_NEW) != 0)) {
                        rc = po->opo_obj.do_ops->do_attr_get(env, lu2dt_obj(o),