From ddf2a1d6564800f6d7f87e91cb8a7dfaa0edac1f Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Fri, 16 Jun 2017 15:43:23 +0200 Subject: [PATCH] Revert "lvconvert: reject changing number of stripes on single core This reverts commit 3719f4bc5441cb5f29ad4beb91ccaa6b234ea8e1 to allow for single core testing on kernels with deadlock fixes relative to rhbz1443999." --- lib/metadata/raid_manip.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c index ade27e606..214aa19e2 100644 --- a/lib/metadata/raid_manip.c +++ b/lib/metadata/raid_manip.c @@ -2346,12 +2346,6 @@ static int _raid_reshape(struct logical_volume *lv, /* Handle disk addition reshaping */ if (old_image_count < new_image_count) { - /* FIXME: remove once MD kernel rhbz1443999 got fixed. */ - if (sysconf(_SC_NPROCESSORS_ONLN) < 2) { - log_error("Can't add stripes to LV %s on single core.", display_lvname(lv)); - return 0; - } - if (!_raid_reshape_add_images(lv, new_segtype, yes, old_image_count, new_image_count, new_stripes, new_stripe_size, allocate_pvs)) @@ -2359,12 +2353,6 @@ static int _raid_reshape(struct logical_volume *lv, /* Handle disk removal reshaping */ } else if (old_image_count > new_image_count) { - /* FIXME: remove once MD kernel rhbz1443999 got fixed. */ - if (sysconf(_SC_NPROCESSORS_ONLN) < 2) { - log_error("Can't remove stripes from LV %s on single core.", display_lvname(lv)); - return 0; - } - if (!_raid_reshape_remove_images(lv, new_segtype, yes, force, old_image_count, new_image_count, new_stripes, new_stripe_size, -- 2.43.5