Whamcloud - gitweb
Branch: b_new_cmd
authorwangdi <wangdi>
Mon, 21 Aug 2006 14:57:07 +0000 (14:57 +0000)
committerwangdi <wangdi>
Mon, 21 Aug 2006 14:57:07 +0000 (14:57 +0000)
should not check stale when new fid allocating

lustre/mdc/mdc_locks.c

index 722acc1..f31df4f 100644 (file)
@@ -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) &&