Whamcloud - gitweb
b=5874
authoralex <alex>
Tue, 15 Mar 2005 14:20:10 +0000 (14:20 +0000)
committeralex <alex>
Tue, 15 Mar 2005 14:20:10 +0000 (14:20 +0000)
  additional debug info

lustre/mds/handler.c

index 0383838..f0e837f 100644 (file)
@@ -1086,6 +1086,13 @@ static int mds_getattr_lock(struct ptlrpc_request *req, int offset,
                 LASSERT(dparent);
 
                 dchild = ll_lookup_one_len(name, dparent, namesize - 1);
+                if (IS_ERR(dchild)) {
+                        DEBUG_REQ(D_ERROR, req, "resent, not enqueuing new locks");
+                        CDEBUG(D_ERROR, "lock against [%lu:%lu]/%*s\n",
+                               (unsigned long) id_ino(&body->id1),
+                               (unsigned long) id_gen(&body->id1),
+                               namesize - 1, name);
+                }
                 LASSERT(!IS_ERR(dchild));
                 LDLM_LOCK_PUT(granted_lock);
         }