]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: avoid acquiring the wrlock twice for a single request
authorXiubo Li <xiubli@redhat.com>
Mon, 8 Jul 2024 07:53:28 +0000 (15:53 +0800)
committerSunnatillo <sunnat.samadov@est.tech>
Tue, 7 Jan 2025 09:34:57 +0000 (11:34 +0200)
commit276b81a55d391b52f9772fc76b86b845eb3854a6
tree7fbf2e689151c547f79e0fcc4f5f951aa3fb9c7a
parenta86ee496be932290650a069ee5750557df5054a6
mds: avoid acquiring the wrlock twice for a single request

In case the current request has lock cache attached and then the
lock cache must have already acquired the wrlock of filelock. So
currently the path_traverse() will acquire the wrlock twice and
possibly caused deadlock by itself.

Fixes: https://tracker.ceph.com/issues/65607
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Sunnatillo <sunnat.samadov@est.tech>
src/mds/MDCache.cc
src/mds/MDSRank.cc