Whamcloud - gitweb
LU-1350 debug: lower debug message level
authorBobi Jam <bobijam@whamcloud.com>
Fri, 4 May 2012 09:32:59 +0000 (17:32 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 19 May 2012 15:57:23 +0000 (11:57 -0400)
File info read and unlink race is normal, we'd lower the debug message
level since a lot of unnecessary unmasked messages will be generated
if mdt_object_find() cannot find those deleted objects.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I5d6e65ad2c2dabadb371fdc4ffd6d8193f1cd0fb
Reviewed-on: http://review.whamcloud.com/2648
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_handler.c

index 68a4312..5a1d6e3 100644 (file)
@@ -912,16 +912,16 @@ static int mdt_getattr_name_lock(struct mdt_thread_info *info,
         }
         mdt_set_disposition(info, ldlm_rep, DISP_LOOKUP_EXECD);
 
-        rc = mdt_object_exists(parent);
-        if (unlikely(rc == 0)) {
-                LU_OBJECT_DEBUG(D_WARNING, info->mti_env,
-                                &parent->mot_obj.mo_lu,
-                                "Parent doesn't exist!\n");
-                RETURN(-ESTALE);
-        } else if (!info->mti_cross_ref) {
-                LASSERTF(rc > 0, "Parent "DFID" is on remote server\n",
-                         PFID(mdt_object_fid(parent)));
-        }
+       rc = mdt_object_exists(parent);
+       if (unlikely(rc == 0)) {
+               LU_OBJECT_DEBUG(D_INODE, info->mti_env,
+                               &parent->mot_obj.mo_lu,
+                               "Parent doesn't exist!\n");
+               RETURN(-ESTALE);
+       } else if (!info->mti_cross_ref) {
+               LASSERTF(rc > 0, "Parent "DFID" is on remote server\n",
+                        PFID(mdt_object_fid(parent)));
+       }
         if (lname) {
                 rc = mdt_raw_lookup(info, parent, lname, ldlm_rep);
                 if (rc != 0) {