From 597df2739e4e2a6273dbb2e62b140d7f002be538 Mon Sep 17 00:00:00 2001
From: shadow <shadow>
Date: Tue, 13 Feb 2007 18:28:22 +0000
Subject: [PATCH] remove debug assert. b=11669 r=green,adilger

---
 lustre/llite/file.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lustre/llite/file.c b/lustre/llite/file.c
index 5ea5e2c1c5..4e1fe10c20 100644
--- a/lustre/llite/file.c
+++ b/lustre/llite/file.c
@@ -285,8 +285,12 @@ static int ll_intent_file_open(struct file *file, void *lmm,
         rc = mdc_intent_lock(sbi->ll_mdc_exp, &data, lmm, lmmsize, itp,
                               0 /*unused */, &req, ll_mdc_blocking_ast, 0);
         if (rc == -ESTALE) {
+                /* reason for keep own exit path - don`t flood log
+                * with messages with -ESTALE errors.
+                */
+                if (!it_disposition(itp, DISP_OPEN_OPEN))
+                        GOTO(out, rc);
                 ll_release_openhandle(file->f_dentry, itp);
-                LASSERT(it_disposition(itp, DISP_OPEN_OPEN));
                 GOTO(out_stale, rc);
         }
 
-- 
GitLab