Skip to content

Commit f893778

Browse files
committed
mds: do not schedule quiesce for non-head imported inodes
Fixes: https://tracker.ceph.com/issues/69844 Signed-off-by: Patrick Donnelly <[email protected]>
1 parent aaee958 commit f893778

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mds/MDCache.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14073,7 +14073,10 @@ void MDCache::add_quiesce(CInode* parent, CInode* in)
1407314073
auto& qs = *qis->qs;
1407414074
auto& qops = qrmdr->more()->quiesce_ops;
1407514075

14076-
if (auto it = qops.find(in->ino()); it != qops.end()) {
14076+
if (!in->is_head()) {
14077+
dout(25) << " skipping non-head inode: " << *in << dendl;
14078+
return;
14079+
} else if (auto it = qops.find(in->ino()); it != qops.end()) {
1407714080
dout(25) << __func__ << ": existing quiesce metareqid: " << it->second << dendl;
1407814081
return;
1407914082
}

0 commit comments

Comments
 (0)