diff options
author | David Teigland <teigland@redhat.com> | 2019-04-30 14:59:27 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2019-04-30 14:59:27 -0500 |
commit | 90b94ead12d739a3221e179bdcf1c482978f0f0f (patch) | |
tree | 157dd8d6b059be5f05c96f81339477a9c0bcfc68 | |
parent | d7054cd28ae6bb2fad216f8756ab030de3e8e65e (diff) | |
download | lvm2-90b94ead12d739a3221e179bdcf1c482978f0f0f.tar.gz |
lvmcache: remove unused flag
The new label scan design is never called recursively,
so we don't need a flag to check for that.
-rw-r--r-- | lib/cache/lvmcache.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c index f0b1d56cd..7d0c60d42 100644 --- a/lib/cache/lvmcache.c +++ b/lib/cache/lvmcache.c @@ -66,7 +66,6 @@ static struct dm_hash_table *_vgname_hash = NULL; static DM_LIST_INIT(_vginfos); static DM_LIST_INIT(_found_duplicate_devs); static DM_LIST_INIT(_unused_duplicate_devs); -static int _scanning_in_progress = 0; static int _vgs_locked = 0; static int _found_duplicate_pvs = 0; /* If we never see a duplicate PV we can skip checking for them later. */ static int _found_duplicate_vgnames = 0; @@ -855,12 +854,6 @@ int lvmcache_label_scan(struct cmd_context *cmd) log_debug_cache("Finding VG info"); - /* Avoid recursion when a PVID can't be found! */ - if (_scanning_in_progress) - return 0; - - _scanning_in_progress = 1; - /* FIXME: can this happen? */ if (!cmd->filter) { log_error("label scan is missing filter"); @@ -941,8 +934,6 @@ int lvmcache_label_scan(struct cmd_context *cmd) r = 1; out: - _scanning_in_progress = 0; - dm_list_iterate_items(vginfo, &_vginfos) { if (is_orphan_vg(vginfo->vgname)) continue; |