From: wangdi Date: Mon, 21 Aug 2006 14:57:07 +0000 (+0000) Subject: Branch: b_new_cmd X-Git-Tag: v1_8_0_110~486^2~1130 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3ed93f25889668ca67dcd77fd7282008ebcfa319;p=fs%2Flustre-release.git Branch: b_new_cmd should not check stale when new fid allocating --- diff --git a/lustre/mdc/mdc_locks.c b/lustre/mdc/mdc_locks.c index 722acc1..f31df4f 100644 --- a/lustre/mdc/mdc_locks.c +++ b/lustre/mdc/mdc_locks.c @@ -704,7 +704,8 @@ int mdc_intent_lock(struct obd_export *exp, struct md_op_data *op_data, /* If we were revalidating a fid/name pair, mark the intent in * case we fail and get called again from lookup */ if (fid_is_sane(&op_data->fid2) && - !(it->it_op & IT_GETATTR) && !(it->it_op & IT_CREAT)) { + !(it->it_op & IT_GETATTR) && !(it->it_op & IT_CREAT) + && !(it->it_op & IT_OPEN && it->it_create_mode & O_CREAT)) { it_set_disposition(it, DISP_ENQ_COMPLETE); /* Also: did we find the same inode? */ if (!it_disposition(it, DISP_OPEN_CREATE) &&