]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs: Reset scrub data when inodes move
authorDouglas Fuller <dfuller@redhat.com>
Thu, 30 Nov 2017 16:13:36 +0000 (11:13 -0500)
committerPrashant D <pdhange@redhat.com>
Fri, 16 Feb 2018 05:41:32 +0000 (00:41 -0500)
commitb80738c1933e2cadbabb106f9e335c9848e9d444
tree415c2988fc7b0ae7af4582176cffeb4f5186d6ee
parent3e86319b8fa5f85a078441b88935f812c8039580
cephfs: Reset scrub data when inodes move

If an inode currently on the ScrubStack is moved, it may be
initialized again, causing an assert. Instead, remove the inode
from its parent scrub list and reinitialize it.

Fixes: http://tracker.ceph.com/issues/22288
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
(cherry picked from commit 4f5c8b604cc2a680652516e49e5a7cb4cbbbe887)
src/mds/CDir.cc
src/mds/CInode.cc