]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: don't modify filepath when printing 23677/head
authorYan, Zheng <zyan@redhat.com>
Wed, 15 Aug 2018 02:47:08 +0000 (10:47 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 22 Aug 2018 02:31:26 +0000 (10:31 +0800)
commit1a92b14599c261b4127ac3a480e5cfc32c659af6
tree0c8851730036ab2246b4557c473ef91bd4ac9ffd
parentf91e914ac71af95a8790f0874a45711cc64cbb6e
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>
(cherry picked from commit 0f057feac379fb49a1ed42948b489ceefccc15b8)
src/include/filepath.h