mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
revert "cache: add pool deps for preload"
This reverts commit c3bb6d77dd
.
Since we now have for_each_sub_lv() scanning all sub LVs,
this commit could be safely reverted.
This commit is contained in:
parent
d021284bcf
commit
578b236a19
@ -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))
|
if (!for_each_sub_lv((struct logical_volume *)ondisk_lv, &_preload_detached_lv, &detached))
|
||||||
goto_out;
|
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.
|
* Preload any snapshots that are being removed.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user