ceph: attempt to do async create when possible
With the Octopus release, the MDS will hand out directory create caps. If we have Fxc caps on the directory, and complete directory information or a known negative dentry, then we can return without waiting on the reply, allowing the open() call to return very quickly to userland. We use the normal ceph_fill_inode() routine to fill in the inode, so we have to gin up some reply inode information with what we'd expect the newly-created inode to have. The client assumes that it has a full set of caps on the new inode, and that the MDS will revoke them when there is conflicting access. This functionality is gated on the wsync/nowsync mount options. Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
parent
785892fe
-
mentioned in commit 02c303f3
-
mentioned in commit f810a6ac
-
mentioned in commit 4584a768
-
mentioned in commit 932a9b58
-
mentioned in commit e7be12ca
-
mentioned in commit 6ceac38e
-
mentioned in commit 620239d9
-
mentioned in commit e06605af
-
mentioned in commit 8c09cb11
-
mentioned in commit 25633e35
Please register or sign in to comment