]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
kclient: setattr on inode (not path) if holding WR cap
authorSage Weil <sage@newdream.net>
Wed, 31 Dec 2008 19:19:38 +0000 (11:19 -0800)
committerSage Weil <sage@newdream.net>
Wed, 31 Dec 2008 19:19:38 +0000 (11:19 -0800)
commit9a3988e4f7ed6e0c6f41a62037c55cf0c3025f4d
treed5d088131c32704ecfdad904e10023f74378ab21
parent4377dba3191d37b3817516c4fa26b99eb2abad07
kclient: setattr on inode (not path) if holding WR cap

For newly created files, this avoids contention in the MDS over the dentry
xlock (e.g., for an untar).

It is slightly risky, because we could race with a caps release and MDS
cache trim.  Pretty unlikely, however, because cap release would also
involve MDS journaling.
src/kernel/inode.c