Skip to content

Commit

Permalink
Merge PR ceph#26374 into master
Browse files Browse the repository at this point in the history
* refs/pull/26374/head:
	mds: fix potential re-evaluate stray dentry in _unlink_local_finish

Reviewed-by: Zheng Yan <[email protected]>
  • Loading branch information
batrick committed Feb 14, 2019
2 parents 5277775 + 72c93ba commit c696b8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mds/MDCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ class MDCache {
*/
void notify_stray(CDentry *dn) {
ceph_assert(dn->get_dir()->get_inode()->is_stray());
if (dn->state_test(CDentry::STATE_PURGING))
return;

stray_manager.eval_stray(dn);
}

Expand Down

0 comments on commit c696b8d

Please sign in to comment.