]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: only move ScatterLock to MIX if WR is wanted
authorSage Weil <sage@newdream.net>
Fri, 4 Sep 2009 22:50:08 +0000 (15:50 -0700)
committerSage Weil <sage@newdream.net>
Fri, 4 Sep 2009 22:50:08 +0000 (15:50 -0700)
Not WR|RD!

src/mds/Locker.cc

index 447db39ee0c554096bed02f61f8228e25988096a..2ac251034a7996e6eb484930ae8fa147f90a746e 100644 (file)
@@ -3172,7 +3172,7 @@ void Locker::file_eval(ScatterLock *lock, bool *need_issue)
           //!lock->is_rdlocked() &&
           //!lock->is_waiter_for(SimpleLock::WAIT_WR) &&
           (lock->get_scatter_wanted() ||
-           (in->multiple_nonstale_caps() && (wanted & (CEPH_CAP_GRD|CEPH_CAP_GWR))))) {
+           (in->multiple_nonstale_caps() && (wanted & CEPH_CAP_GWR)))) {
     dout(7) << "file_eval stable, bump to mixed " << *lock
            << " on " << *lock->get_parent() << dendl;
     file_mixed(lock, need_issue);