]> 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, 7 Dec 2021 15:32:47 +0000 (10:32 -0500)
commita2b8fe2befad5b9af04f112a35a02f8f6ec21aa3
tree78d10d16e0f6e9e8e394dedf7cfc68d0f51cbbe1
parentfb12662c6e91900f56d4ea22330d4c63f24e6a2b
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.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/mds_client.c