Skip to content

Commit c6bff73

Browse files
committed
Merge PR ceph#53494 into main
* refs/pull/53494/head: mds: fix stray CInodes' use-after-free bug when submit ELid entry Reviewed-by: Venky Shankar <vshankar@redhat.com> Reviewed-by: Dhairya Parmar <dparmar@redhat.com> Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2 parents acd7f82 + 283b91a commit c6bff73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mds/MDLog.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,9 @@ LogSegment* MDLog::_start_new_segment(SegmentBoundary* sb)
286286
sb->set_seq(event_seq);
287287

288288
// Adjust to next stray dir
289-
mds->mdcache->advance_stray();
289+
if (!mds->is_stopping()) {
290+
mds->mdcache->advance_stray();
291+
}
290292
return ls;
291293
}
292294

0 commit comments

Comments
 (0)