]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: cinode: Add a little debugging and fix an output
authorGreg Farnum <gregory.farnum@dreamhost.com>
Wed, 20 Jul 2011 20:15:33 +0000 (13:15 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Wed, 20 Jul 2011 20:22:19 +0000 (13:22 -0700)
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/mds/CInode.cc

index 2299da24a1a135b251481e352a43b890743654c8..c2ee8d322f552811daeb63791a1355305f878eda 100644 (file)
@@ -1933,9 +1933,11 @@ void CInode::add_waiter(uint64_t tag, Context *c)
   //  make sure its not the inode that is explicitly ambiguous|freezing|frozen
   if (((tag & WAIT_SINGLEAUTH) && !state_test(STATE_AMBIGUOUSAUTH)) ||
       ((tag & WAIT_UNFREEZE) && !is_frozen_inode() && !is_freezing_inode())) {
+    dout(15) << "passing waiter up tree" << dendl;
     parent->dir->add_waiter(tag, c);
     return;
   }
+  dout(15) << "taking waiter here" << dendl;
   MDSCacheObject::add_waiter(tag, c);
 }
 
@@ -2018,7 +2020,7 @@ void CInode::auth_unpin(void *by)
   assert(auth_pins >= 0);
 
   if (parent)
-    parent->adjust_nested_auth_pins(-1, -1, this);
+    parent->adjust_nested_auth_pins(-1, -1, by);
 
   if (is_freezing_inode() &&
       auth_pins == auth_pin_freeze_allowance) {