]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: make ceph_msdc_build_path use ref-walk
authorJeff Layton <jlayton@kernel.org>
Wed, 5 Aug 2020 18:50:48 +0000 (14:50 -0400)
committerJeff Layton <jlayton@kernel.org>
Tue, 31 May 2022 14:45:38 +0000 (10:45 -0400)
commitc8c74fdf650132fd2e277399d83c7f0f7df98a88
tree9265dcdc5658e265995a423479182025bc6b5bbf
parentc94a58346bfb86b0042993ca6e3a8880c4e7870d
ceph: make ceph_msdc_build_path use ref-walk

Encryption potentially requires allocation, at which point we'll need to
be in a non-atomic context. Convert ceph_msdc_build_path to take dentry
spinlocks and references instead of using rcu_read_lock to walk the
path.

This is slightly less efficient, and we may want to eventually allow
using RCU when the leaf dentry isn't encrypted.

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/mds_client.c