]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: fix deadlock when xlocking policylock
authorYan, Zheng <zyan@redhat.com>
Thu, 5 Dec 2019 09:24:47 +0000 (17:24 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 12 Dec 2019 18:04:15 +0000 (02:04 +0800)
commit120d70dc09a6e7a093284416afe39439ace9293d
treeebc64b056eece33deeecdde6be3f54a223f95d88
parenteec1485feef7a67495ef33132aaedd61269a2dff
mds: fix deadlock when xlocking policylock

Previous commit makes Server::rdlock_path_pin_ref() rdlock snaplock and
policylock. Deadlock happens if we use this function for requests that
xlock snaplock or snaplock.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/Server.cc
src/mds/Server.h