]> 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 19672/head
authorYunfeiGuan <yunfeiguan@xtaotech.com>
Wed, 3 Jan 2018 03:43:07 +0000 (11:43 +0800)
committerYunfeiGuan <yunfeiguan@xtaotech.com>
Wed, 3 Jan 2018 03:43:07 +0000 (11:43 +0800)
commit65fcccc04a6239a9c7cbf0192de14f963ebf1079
treea3963e0cbc7e74608a9357bb7d007bf484060ffe
parent2113ebe02d528ad7de2d635ca174d8f2b063fdf0
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>
src/client/Client.cc