From 3ed93f25889668ca67dcd77fd7282008ebcfa319 Mon Sep 17 00:00:00 2001 From: wangdi Date: Mon, 21 Aug 2006 14:57:07 +0000 Subject: [PATCH] Branch: b_new_cmd should not check stale when new fid allocating --- lustre/mdc/mdc_locks.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) && -- 1.8.3.1