]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: drain wrlocks before going from LOCK->SYNC in file_eval
authorSage Weil <sage@newdream.net>
Thu, 14 May 2009 23:10:27 +0000 (16:10 -0700)
committerSage Weil <sage@newdream.net>
Thu, 14 May 2009 23:10:27 +0000 (16:10 -0700)
commitf275b458fb8bfa984e8b553c743c88d63fbf7f7b
tree0b9bb945a23a1b50b9c1499c81ddf5a9b082f4cc
parent3b6a6f1e24a481299386ef74e31ed5684100a95a
mds: drain wrlocks before going from LOCK->SYNC in file_eval

This avoids excessive waits for the journal to flush on lock->sync
when a client request holds a wrlock.  There's no reason to hurry.. if
someone needs it sync we can to the transition then; otherwise, it'll
happen when the wrlock is dropped.
src/mds/Locker.cc