]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix potential re-evaluate stray dentry in _unlink_local_finish 26474/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:55:59 +0000 (19:55 -0500)
commit27b6f67b56f0330f00b80d0311d518862cbf0608
tree6e056cacd5c1f99423b3e108a1734ce43261c0d2
parent11e90a5ca502678e13f1259e42a2d6e90bf6a312
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