]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: don't auth_pin non-auth rdlock targets
authorSage Weil <sage@newdream.net>
Thu, 19 Aug 2010 22:36:18 +0000 (15:36 -0700)
committerSage Weil <sage@newdream.net>
Tue, 24 Aug 2010 03:23:14 +0000 (20:23 -0700)
This generates lots of lock traffic that is unneeded with the authchange
notification machinery.

src/mds/Locker.cc

index c6fc3e150fca11f7226bd2940147813ee1e440e7..8b5f561202118779416082d364763e407da3d40d 100644 (file)
@@ -212,11 +212,6 @@ bool Locker::acquire_locks(MDRequest *mdr,
     sorted.insert(*p);
     if ((*p)->get_parent()->is_auth())
       mustpin.insert(*p);
-    else if ((*p)->get_type() == CEPH_LOCK_IFILE &&
-            !(*p)->get_parent()->is_auth() && !(*p)->can_rdlock(client)) { // we might have to request an rdlock
-      dout(15) << " will also auth_pin " << *(*p)->get_parent() << " in case we need to request a rdlock" << dendl;
-      mustpin.insert(*p);
-    }
   }