From f605b19700b0d8f3cff47a6a6ec32b3f24bdbf3a Mon Sep 17 00:00:00 2001 From: Fan Yong Date: Tue, 9 Mar 2010 11:26:10 -0800 Subject: [PATCH] b=21986 allow to apply OPEN_LOCK even when file created Allow to apply OPEN_LOCK even when file created. i=robert.read i=oleg.drokin --- lustre/mdt/mdt_open.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lustre/mdt/mdt_open.c b/lustre/mdt/mdt_open.c index 4ce9a49..b8e098a 100644 --- a/lustre/mdt/mdt_open.c +++ b/lustre/mdt/mdt_open.c @@ -1372,7 +1372,6 @@ int mdt_reint_open(struct mdt_thread_info *info, struct mdt_lock_handle *lhc) if (!(msg_flags & MSG_REPLAY) && create_flags & MDS_OPEN_LOCK) { ldlm_mode_t lm; - LASSERT(!created); if (create_flags & FMODE_WRITE) lm = LCK_CW; else if (create_flags & MDS_FMODE_EXEC) -- 1.8.3.1