new_lock->l_writers = 0;
new_lock->l_export = class_export_get(req->rq_export);
+ spin_lock(&req->rq_export->exp_ldlm_data.led_lock);
list_add(&new_lock->l_export_chain,
&new_lock->l_export->exp_ldlm_data.led_held_locks);
+ spin_unlock(&req->rq_export->exp_ldlm_data.led_lock);
new_lock->l_blocking_ast = lock->l_blocking_ast;
new_lock->l_completion_ast = lock->l_completion_ast;
ENTRY;
DEBUG_REQ(D_INODE, mdt_info_req(info), "partial create "DFID"\n",
- PFID(info->mti_rr.rr_fid2));
+ PFID(info->mti_rr.rr_fid2));
repbody = req_capsule_server_get(&info->mti_pill, &RMF_MDT_BODY);
ma->ma_need = MA_INODE;
ma->ma_valid = 0;
- /* Cross-ref create can encounter already created obj in case
- * of recovery, just get attr in that case */
+
+ /*
+ * Cross-ref create can encounter already created obj in case of
+ * recovery, just get attr in that case.
+ */
if (mdt_object_exists(o) == 1) {
rc = mo_attr_get(info->mti_env, next, ma);
} else {
GOTO(out_unlock_parent, rc = -EINVAL);
if (rr->rr_name[0] == 0) {
- /* remote partial operation
- * It is possible that replay can happen on parent MDS
- * and this operation will be repeated.
- * Therefore the object absense is allowed case
- * and nothing should be done
+ /*
+ * Remote partial operation. It is possible that replay may
+ * happen on parent MDT and this operation will be repeated.
+ * Therefore the object absense is allowed case and nothing
+ * should be done here.
*/
if (mdt_object_exists(mp) > 0) {
mdt_set_capainfo(info, 0, rr->rr_fid1, BYPASS_CAPA);