]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-fuse: ::rmdir() uses a deleted memory structure of dentry leads a core 19968/head
authorYunfeiGuan <yunfeiguan@xtaotech.com>
Wed, 3 Jan 2018 03:43:07 +0000 (11:43 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 16 Jan 2018 13:55:16 +0000 (21:55 +0800)
commitcc76ab1eefab661b794d2852836441fe6e7a761b
treebf1be3fd77ba92591fa81f0e75f7ba84e5094f75
parentcc6a3561cc8ec65e05451073d0dfdd6efb4b9700
ceph-fuse: ::rmdir() uses a deleted memory structure of dentry leads a core

we should add the dentry ref immediately after "get_or_create" in
case of the ref be put to zero.

Fixes: http://tracker.ceph.com/issues/22536
Signed-off-by: YunfeiGuan <yunfeiguan@xtaotech.com>
(cherry picked from commit 65fcccc04a6239a9c7cbf0192de14f963ebf1079)
src/client/Client.cc