summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-01-30 12:31:09 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2015-01-30 12:33:52 +0100
commit578b236a19fab565a4416b17cbc26d53a72b66db (patch)
tree4a9a458cf262590c6293f8962a7a82484613674a
parentd021284bcfda0222f10787ea798077f312ee3275 (diff)
downloadlvm2-578b236a19fab565a4416b17cbc26d53a72b66db.tar.gz
revert "cache: add pool deps for preload"
This reverts commit c3bb6d77dd6193755070c62c6f3adb93c1976f19. Since we now have for_each_sub_lv() scanning all sub LVs, this commit could be safely reverted.
-rw-r--r--lib/activate/activate.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/activate/activate.c b/lib/activate/activate.c
index fc9bc4bc6..dbfb42705 100644
--- a/lib/activate/activate.c
+++ b/lib/activate/activate.c
@@ -1876,11 +1876,6 @@ static int _lv_suspend(struct cmd_context *cmd, const char *lvid_s,
if (!for_each_sub_lv((struct logical_volume *)ondisk_lv, &_preload_detached_lv, &detached))
goto_out;
- /* ATM cache/thin pool is not scanned in 'for_each_sub_lv()', TODO explore better way */
- if (lv_is_cache(ondisk_lv) &&
- !for_each_sub_lv(first_seg(ondisk_lv)->pool_lv, &_preload_detached_lv, &detached))
- goto_out;
-
/*
* Preload any snapshots that are being removed.
*/