]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix potential re-evaluate stray dentry in _unlink_local_finish 26473/head
authorZhi Zhang <willzzhang@tencent.com>
Tue, 12 Feb 2019 02:44:31 +0000 (10:44 +0800)
committerPrashant D <pdhange@redhat.com>
Mon, 18 Feb 2019 00:19:40 +0000 (19:19 -0500)
commitff9e24f9b5ecdd9c9680308e767cd5743f71bcc1
treee0244bb584892785514e3665583928c6e0162078
parent1f910bc2cde041d4c472ed9fde8b1c1ab21826f1
mds: fix potential re-evaluate stray dentry in _unlink_local_finish

If MDS handles cap release before _unlink_local_finish, then when MDS
processes _unlink_local_finish, eval_stray might be re-entered twice,
so this will cause crashing.

Fixes: http://tracker.ceph.com/issues/38263
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
(cherry picked from commit 72c93baac64211e9f02fa01e743451bf5d63d7a6)

Conflicts:
src/mds/MDCache.h : Resolved in notify_stray
src/mds/MDCache.h