]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: only file_eval on xlock_finish if stable
authorSage Weil <sage@newdream.net>
Thu, 8 Jan 2009 18:43:29 +0000 (10:43 -0800)
committerSage Weil <sage@newdream.net>
Thu, 8 Jan 2009 18:43:29 +0000 (10:43 -0800)
src/mds/Locker.cc

index 55698b4a74785026107892e16dd3f655c028e8ad..7023485c5cc95f1851f5e22886be02552623a56c 100644 (file)
@@ -3331,7 +3331,8 @@ void Locker::file_xlock_finish(FileLock *lock, Mutation *mut)
                       SimpleLock::WAIT_WR | 
                       SimpleLock::WAIT_RD, 0); 
 
-  if (lock->get_parent()->is_auth())
+  if (lock->get_parent()->is_auth() &&
+      lock->is_stable())
     file_eval(lock);
 }