From 067d8bb0d198ee910f9f31146fbb205f05bd5910 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 19 Aug 2010 15:36:26 -0700 Subject: [PATCH] mds: don't auth_pin non-auth wrlock targets --- src/mds/Locker.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/mds/Locker.cc b/src/mds/Locker.cc index 8b5f56120211..94dc89d86bba 100644 --- a/src/mds/Locker.cc +++ b/src/mds/Locker.cc @@ -197,11 +197,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_wrlock(client)) { // we might have to request a scatter - dout(15) << " will also auth_pin " << *(*p)->get_parent() << " in case we need to request a scatter" << dendl; - mustpin.insert(*p); - } } // rdlocks -- 2.47.3