From 578b236a19fab565a4416b17cbc26d53a72b66db Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 30 Jan 2015 12:31:09 +0100 Subject: [PATCH] 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. --- lib/activate/activate.c | 5 ----- 1 file changed, 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. */