From 91952aaf582174cd167d3a8967a121cdffab27ff Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 25 Apr 2017 11:13:44 -0400 Subject: [PATCH] mds: break ancestor walk if node is export_pinned i.e. don't keep walking the parents after adding the ancestor (or the node itself) to the export_pin_queue. Signed-off-by: Patrick Donnelly --- src/mds/CInode.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index d551f1837e1e..73054cb8375f 100644 --- a/src/mds/CInode.cc +++ b/src/mds/CInode.cc @@ -4414,9 +4414,8 @@ void CInode::maybe_export_pin() if (pin != mdcache->mds->get_nodeid()) { dout(20) << "adding ancestor to export_pin_queue " << *auth_last << dendl; mdcache->export_pin_queue.insert(auth_last); - } else { - break; /* it is correctly pinned here! */ } + break; } } } else { -- 2.47.3