From 7707ea90f41a143c25f02ee5d0f981815bc32e35 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 22 Nov 2005 19:31:20 +0000 Subject: [PATCH] Suppress unnecessary resumes. --- libdm/libdm-deptree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index d60f8607d..de7dc4c1f 100644 --- a/libdm/libdm-deptree.c +++ b/libdm/libdm-deptree.c @@ -1418,6 +1418,9 @@ int dm_tree_preload_children(struct dm_tree_node *dnode, if (!dm_tree_node_num_children(child, 1)) continue; + if (!child->info.inactive_table && !child->info.suspended) + continue; + if (!_resume_node(name, child->info.major, child->info.minor, &newinfo)) { log_error("Unable to resume %s (%" PRIu32 ":%" PRIu32 ")", name, child->info.major,