]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: don't modify filepath when printing 23584/head
authorYan, Zheng <zyan@redhat.com>
Wed, 15 Aug 2018 02:47:08 +0000 (10:47 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 17 Aug 2018 01:26:55 +0000 (09:26 +0800)
commit0f057feac379fb49a1ed42948b489ceefccc15b8
tree9edcdb18928ffc3152057a6a1b5e0d981df4d434
parent1013374863188172f4839fb90ce97bb2e61be2e1
mds: don't modify filepath when printing

filepath::depth() may call parse_bits(), which modifies mutable member
'bits'. dump_ops_in_flight asok command prints filepath without holding
mds_lock. So multiple threads may call parse_bits() at the same time.

Fixes: http://tracker.ceph.com/issues/26894
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/include/filepath.h