]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: no need to take mds_lock in truncate callback
authorSage Weil <sage@newdream.net>
Thu, 30 Jul 2009 20:00:49 +0000 (13:00 -0700)
committerSage Weil <sage@newdream.net>
Thu, 30 Jul 2009 20:45:12 +0000 (13:45 -0700)
It's already held when the Objecter message handler is called.

src/mds/MDLog.cc

index c7682ff37a28501c5384778c89cbd4395de345e6..5fc6545f2a2d7a5317a48bb7c96e8c1e1164ad37 100644 (file)
@@ -470,9 +470,7 @@ struct C_MDL_ReplayTruncated : public Context {
   MDLog *mdl;
   C_MDL_ReplayTruncated(MDLog *l) : mdl(l) {}
   void finish(int r) {
-    mdl->mds->mds_lock.Lock();
     mdl->_replay_truncated();
-    mdl->mds->mds_lock.Unlock();
   }
 };