]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: do not eval subtree root during rename_prepare
authorSage Weil <sage@newdream.net>
Sat, 21 Nov 2009 05:42:04 +0000 (21:42 -0800)
committerSage Weil <sage@newdream.net>
Sat, 21 Nov 2009 05:42:04 +0000 (21:42 -0800)
commit1ee8308c74f991e7d20c633b3e3a9f1691884be8
tree070f05fb381d6935361b119f54128619e122aeb2
parentb62daac29d15c4676f74c93a44e36cf125dbe829
mds: do not eval subtree root during rename_prepare

The eval may lead to a scatter_writebehind, which screws up the journal
ordering.  Since the inode is also locked, we will end up evaling it
later anyway, so don't worry about it.

I'm a bit unsure about the adjust_subtree_after_rename... that is during
the rename_apply stage (after the log entry committed), so i think it's
safe to do a scatter_writebehind here.. since we're not between a predirty
and submit_entry.
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/Server.cc