]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: do not trim the inodes from the lru list in standby_replay 40743/head
authorXiubo Li <xiubli@redhat.com>
Wed, 21 Apr 2021 13:00:19 +0000 (21:00 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 4 May 2021 13:58:34 +0000 (15:58 +0200)
commit28291bcc02d46265a13212bf0b5429560cbf560a
treee5059d0b223d516fe31bd1d52d8aa9b3dc4dad30
parentca9d3b618db27d55266f266eab8a0aeacbad9fce
mds: do not trim the inodes from the lru list in standby_replay

In standby_replay, if some dentries just added/linked but not get a
chance to replay the EOpen journals followed, if the upkeep_main() is
excuted, which will may trim them out immediately. Then when playing
the EOpen journals later the replay will fail.

In standby_replay, let's skip trimming them if dentry's linkage inode
is not nullptr.

Fixes: https://tracker.ceph.com/issues/50246
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 79bb44c1b9f1715378a9550a81984e949e454ff4)
src/mds/MDCache.cc