when mds enter clientreplay/active state, it will start purging
each log segments' purging_inodes.
Signed-off-by: "Yan, Zheng" <ukernel@gmail.com>
Fixes: https://tracker.ceph.com/issues/49074
ceph_assert(ls);
session->info.prealloc_inos.subtract(inos_to_purge);
ls->purging_inodes.insert(inos_to_purge);
- mdcache->purge_inodes(inos_to_purge, ls);
+ if (mds->is_clientreplay() || mds->is_active() || mds->is_stopping())
+ mdcache->purge_inodes(inos_to_purge, ls);
}
if (inos_to_free.size()) {