#ifdef S_PDIROPS
if (IS_PDIROPS(de_tgt_dir->d_inode)) {
int flags = 0;
- update_mode = mds_lock_mode_for_dir(obd, de_tgt_dir, LCK_PW);
+ update_mode = mds_lock_mode_for_dir(obd, de_tgt_dir, LCK_EX);
if (update_mode) {
rc = ldlm_cli_enqueue(NULL, NULL, obd->obd_namespace,
tgt_dir_res_id, LDLM_IBITS,