]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: clarify inode dirstat/rstat locking
authorSage Weil <sage@newdream.net>
Thu, 23 Sep 2010 19:20:36 +0000 (12:20 -0700)
committerSage Weil <sage@newdream.net>
Thu, 23 Sep 2010 23:44:47 +0000 (16:44 -0700)
commit2fbd843f3e17ee95883e246566ab7cb67c45fa04
tree5f58d528a1117c0ae933a97a4d678b27aa4c53a8
parentb108b6a71309d57b82411d0a4c71503697c6f555
mds: clarify inode dirstat/rstat locking

The accounted_rstat must always remain consistent with the parent dirfrag,
which in turn means it is governed by the parent's nestlock.

The rstat is protected by _this_ inode's nestlock, and is updated by
scatter_writebehind() or predirty_journal_parents().

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/mdstypes.h