md/raid456: remove depends on CONFIG_EXPERIMENTAL
Subsystems (2)
PATCH 1/1 md/raid456: remove depends on CONFIG_EXPERIMENTAL
The CONFIG_EXPERIMENTAL config item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, remove it from any "depends on" lines in Kconfigs.
--- drivers/md/Kconfig | 1 - 1 file changed, 1 deletion(-)
drivers/md/Kconfig +0 -1
@@ -158,7 +158,6 @@ config MULTICORE_RAID456 bool "RAID-4/RAID-5/RAID-6 Multicore processing (EXPERIMENTAL)" depends on MD_RAID456 depends on SMP - depends on EXPERIMENTAL ---help--- Enable the raid456 module to dispatch per-stripe raid operations to a thread pool.
Signature · 6 lines
1.7.9.5 -- Kees Cook Chrome OS Security
Quoted 17 lines · Kees Cook
The
CONFIG_EXPERIMENTALconfig item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, remove it from any "depends on" lines in Kconfigs.Signed-off-by Kees Cook <[email protected]>Cc Arjan van de Ven <[email protected]>Cc Dan Williams <[email protected]>Cc Alasdair G Kergon <[email protected]>--- drivers/md/Kconfig | 1 - 1 file changed, 1 deletion(-)drivers/md/Kconfig +0
-0
drivers/md/Kconfig config MULTICORE_RAID456 · line 161
Quoted 4 lines
drivers/md/Kconfig +0
-1@@ -158,7 +158,6 @@ config MULTICORE_RAID456 bool "RAID-4/RAID-5/RAID-6 Multicore processing (EXPERIMENTAL)" depends on MD_RAID456 depends on SMP - depends on EXPERIMENTAL
In this case MULTICORE_RAID456 and the related code should go as well... now that there are patches to supersede this implementation in md-next.
--
Dan
Quoted 13 lines · Dan Williams
Quoted 12 lines · Kees Cook
The
CONFIG_EXPERIMENTALconfig item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, remove it from any "depends on" lines in Kconfigs.Signed-off-by Kees Cook <[email protected]>Cc Arjan van de Ven <[email protected]>Cc Dan Williams <[email protected]>Cc Alasdair G Kergon <[email protected]>--- drivers/md/Kconfig | 1 - 1 file changed, 1 deletion(-)
Quoted 13 lines
drivers/md/Kconfig config MULTICORE_RAID456 · line 161
Quoted 9 lines
drivers/md/Kconfig +0
-1@@ -158,7 +158,6 @@ config MULTICORE_RAID456 bool "RAID-4/RAID-5/RAID-6 Multicore processing (EXPERIMENTAL)" depends on MD_RAID456 depends on SMP - depends on EXPERIMENTALIn this case
MULTICORE_RAID456and the related code should go as well... now that there are patches to supersede this implementation in md-next.
Hrm, well as long as EXPERIMENTAL goes away, I'm happy. :) I sent this most recent patch series based on what was living in linux-next, so if that's changing, that's fine.
-Kees
Signature · 2 lines
Kees Cook Chrome OS Security
Quoted 13 lines · On Tue, 26 Feb 2013 17:27:45 -0800 Dan Williams <[email protected]> wrote:
Quoted 12 lines · Kees Cook
The
CONFIG_EXPERIMENTALconfig item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, remove it from any "depends on" lines in Kconfigs.Signed-off-by Kees Cook <[email protected]>Cc Arjan van de Ven <[email protected]>Cc Dan Williams <[email protected]>Cc Alasdair G Kergon <[email protected]>--- drivers/md/Kconfig | 1 - 1 file changed, 1 deletion(-)
Quoted 14 lines
drivers/md/Kconfig config MULTICORE_RAID456 · line 161
Quoted 9 lines
drivers/md/Kconfig +0
-1@@ -158,7 +158,6 @@ config MULTICORE_RAID456 bool "RAID-4/RAID-5/RAID-6 Multicore processing (EXPERIMENTAL)" depends on MD_RAID456 depends on SMP - depends on EXPERIMENTALIn this case
MULTICORE_RAID456and the related code should go as well... now that there are patches to supersede this implementation in md-next.
What a good idea.
Following will be in -next shortly.
NeilBrown
From 51acbcec6c42b24482bac18e42befc822524535d Mon Sep 17 00:00:00 2001
From: NeilBrown <[email protected]>
Date: Thu, 28 Feb 2013 09:08:34 +1100
Subject: [PATCH] md: remove CONFIG_MULTICORE_RAID456
This doesn't seem to actually help and we have an alternate multi-threading approach waiting in the wings, so just get rid of this config option and associated code.
As a bonus, we remove one use of CONFIG_EXPERIMENTAL
drivers/md/Kconfig +0 -11
@@ -154,17 +154,6 @@ config MD_RAID456 If unsure, say Y. -config MULTICORE_RAID456 - bool "RAID-4/RAID-5/RAID-6 Multicore processing (EXPERIMENTAL)" - depends on MD_RAID456 - depends on SMP - depends on EXPERIMENTAL - ---help--- - Enable the raid456 module to dispatch per-stripe raid operations to a - thread pool. - - If unsure, say N. - config MD_MULTIPATH tristate "Multipath I/O support" depends on BLK_DEV_MD
drivers/md/raid5.c +1 -37
@@ -1406,7 +1406,7 @@ static void ops_run_check_pq(struct stripe_head *sh, struct raid5_percpu *percpu &sh->ops.zero_sum_result, percpu->spare_page, &submit); } -static void __raid_run_ops (struct stripe_head *sh,unsigned long ops_request) +static void raid_run_ops (struct stripe_head *sh,unsigned long ops_request) {int overlap_clear =0 , i, disks = sh->disks;struct dma_async_tx_descriptor *tx =NULL ;
@@ -1471,36 +1471,6 @@ static void __raid_run_ops(struct stripe_head *sh, unsigned long ops_request)put_cpu (); } -#ifdef CONFIG_MULTICORE_RAID456 -static void async_run_ops (void *param,async_cookie_t cookie) -{ -struct stripe_head *sh = param; -unsigned long ops_request = sh->ops.request; - -clear_bit_unlock (STRIPE_OPS_REQ_PENDING , &sh->state); -wake_up (&sh->ops.wait_for_ops); - -__raid_run_ops (sh, ops_request); -release_stripe (sh); -} - -static void raid_run_ops (struct stripe_head *sh,unsigned long ops_request) -{ -/* since handle_stripe can be called outside of raid5d context -* we need to ensure sh->ops.request is de-staged before another -* request arrives -*/ -wait_event (sh->ops.wait_for_ops, - !test_and_set_bit_lock (STRIPE_OPS_REQ_PENDING , &sh->state)); - sh->ops.request = ops_request; - -atomic_inc (&sh->count); -async_schedule (async_run_ops, sh); -} -#else -#define raid_run_ops __raid_run_ops -#endif -static int grow_one_stripe (struct r5conf *conf) {struct stripe_head *sh;
@@ -1509,9 +1479,6 @@ static int grow_one_stripe(struct r5conf *conf)return 0 ; sh->raid_conf = conf; -#ifdef CONFIG_MULTICORE_RAID456 -init_waitqueue_head (&sh->ops.wait_for_ops); -#endif spin_lock_init (&sh->stripe_lock);
@@ -1630,9 +1597,6 @@ static int resize_stripes(struct r5conf *conf, int newsize)break ; nsh->raid_conf = conf; -#ifdef CONFIG_MULTICORE_RAID456 -init_waitqueue_head (&nsh->ops.wait_for_ops); -#endif spin_lock_init (&nsh->stripe_lock);list_add (&nsh->lru, &newstripes);
Quoted 14 lines
Following will be in -next shortly.
NeilBrown
From
51acbcec6c42b24482bac18e42befc822524535dMon Sep 17 00:00:00 2001
From: NeilBrown <[email protected]>
Date: Thu, 28 Feb 2013 09:08:34 +1100
Subject: [PATCH] md: removeCONFIG_MULTICORE_RAID456This doesn't seem to actually help and we have an alternate multi-threading approach waiting in the wings, so just get rid of this config option and associated code.
Quoted 5 lines
As a bonus, we remove one use of
CONFIG_EXPERIMENTALCc Dan Williams <[email protected]>Cc Kees Cook <[email protected]>Signed-off-by NeilBrown <[email protected]>
That commit entered mainline in v3.9-rc2 (still as commit 51acbcec6c42b24482bac18e42befc822524535d). It missed one instance of CONFIG_MULTICORE_RAID456, so this additional patch is needed (which also cleans that macro from two defconfig files). Compile tested, by the way.
Paul Bolle
From ab10e19eeca5ae271ae965418ff736db0230aab6 Mon Sep 17 00:00:00 2001
From: Paul Bolle <[email protected]>
Date: Mon, 11 Mar 2013 11:16:25 +0100
Subject: [PATCH] md: remove CONFIG_MULTICORE_RAID456 entirely
Once instance of this Kconfig macro remained after commit 51acbcec6c42b24482bac18e42befc822524535d ("md: remove CONFIG_MULTICORE_RAID456"). Remove that one too. And, while we're at it, also remove it from the defconfig files that carry it.
--- arch/tile/configs/tilegx_defconfig | 1 - arch/tile/configs/tilepro_defconfig | 1 - drivers/md/raid5.h | 4 ---- 3 files changed, 6 deletions(-)
arch/tile/configs/tilegx_defconfig +0 -1
@@ -330,7 +330,6 @@ CONFIG_MD_RAID0=m CONFIG_MD_RAID1=m CONFIG_MD_RAID10=m CONFIG_MD_RAID456=m -CONFIG_MULTICORE_RAID456=y CONFIG_MD_FAULTY=m CONFIG_BLK_DEV_DM=m CONFIG_DM_DEBUG=y
arch/tile/configs/tilepro_defconfig +0 -1
@@ -324,7 +324,6 @@ CONFIG_MD_RAID0=m CONFIG_MD_RAID1=m CONFIG_MD_RAID10=m CONFIG_MD_RAID456=m -CONFIG_MULTICORE_RAID456=y CONFIG_MD_FAULTY=m CONFIG_BLK_DEV_DM=m CONFIG_DM_DEBUG=y
drivers/md/raid5.h +0 -4
@@ -221,10 +221,6 @@ struct stripe_head {struct stripe_operations {int target, target2;enum sum_check_flags zero_sum_result; -#ifdef CONFIG_MULTICORE_RAID456 -unsigned long request; -wait_queue_head_t wait_for_ops; -#endif } ops;struct r5dev {/* rreq and rvec are used for the replacement device when
Signature · 1 line
1.7.11.7
Quoted 20 lines · On Mon, 11 Mar 2013 11:27:44 +0100 Paul Bolle <[email protected]> wrote:
Quoted 14 lines
Following will be in -next shortly.
NeilBrown
From
51acbcec6c42b24482bac18e42befc822524535dMon Sep 17 00:00:00 2001
From: NeilBrown <[email protected]>
Date: Thu, 28 Feb 2013 09:08:34 +1100
Subject: [PATCH] md: removeCONFIG_MULTICORE_RAID456This doesn't seem to actually help and we have an alternate multi-threading approach waiting in the wings, so just get rid of this config option and associated code.
Quoted 5 lines
As a bonus, we remove one use of
CONFIG_EXPERIMENTALCc Dan Williams <[email protected]>Cc Kees Cook <[email protected]>Signed-off-by NeilBrown <[email protected]>
Quoted 7 lines
That commit entered mainline in v3.9-rc2 (still as commit
51acbcec6c42b24482bac18e42befc822524535d). It missed one instance ofCONFIG_MULTICORE_RAID456, so this additional patch is needed (which also cleans that macro from two defconfig files). Compile tested, by the way.Paul Bolle
Thanks Paul.
I'll send this off to Linus some time in the next week or so.
Thanks,
NeilBrown
Quoted 57 lines
Quoted 2 lines
From
ab10e19eeca5ae271ae965418ff736db0230aab6Mon Sep 17 00:00:00 2001From: Paul Bolle <[email protected]>
Date: Mon, 11 Mar 2013 11:16:25 +0100
Subject: [PATCH] md: removeCONFIG_MULTICORE_RAID456entirelyOnce instance of this
Kconfigmacro remained after commit51acbcec6c42b24482bac18e42befc822524535d("md: removeCONFIG_MULTICORE_RAID456"). Remove that one too. And, while we're at it, also remove it from the defconfig files that carry it.Signed-off-by Paul Bolle <[email protected]>--- arch/tile/configs/tilegx_defconfig | 1 - arch/tile/configs/tilepro_defconfig | 1 - drivers/md/raid5.h | 4 ---- 3 files changed, 6 deletions(-)arch/tile/configs/tilegx_defconfig +0
-1@@ -330,7 +330,6 @@ CONFIG_MD_RAID0=m CONFIG_MD_RAID1=m CONFIG_MD_RAID10=m CONFIG_MD_RAID456=m -CONFIG_MULTICORE_RAID456=y CONFIG_MD_FAULTY=m CONFIG_BLK_DEV_DM=m CONFIG_DM_DEBUG=yarch/tile/configs/tilepro_defconfig +0
-1@@ -324,7 +324,6 @@ CONFIG_MD_RAID0=m CONFIG_MD_RAID1=m CONFIG_MD_RAID10=m CONFIG_MD_RAID456=m -CONFIG_MULTICORE_RAID456=y CONFIG_MD_FAULTY=m CONFIG_BLK_DEV_DM=m CONFIG_DM_DEBUG=ydrivers/md/raid5.h +0
-4@@ -221,10 +221,6 @@ struct stripe_head {struct stripe_operations {int target, target2;enum sum_check_flags zero_sum_result; -#ifdef CONFIG_MULTICORE_RAID456 -unsigned long request; -wait_queue_head_t wait_for_ops; -#endif } ops;struct r5dev {/* rreq and rvec are used for the replacement device when
Quoted 13 lines · Dan Williams
Quoted 12 lines · Kees Cook
The
CONFIG_EXPERIMENTALconfig item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, remove it from any "depends on" lines in Kconfigs.Signed-off-by Kees Cook <[email protected]>Cc Arjan van de Ven <[email protected]>Cc Dan Williams <[email protected]>Cc Alasdair G Kergon <[email protected]>--- drivers/md/Kconfig | 1 - 1 file changed, 1 deletion(-)
Quoted 13 lines
drivers/md/Kconfig config MULTICORE_RAID456 · line 161
Quoted 9 lines
drivers/md/Kconfig +0
-1@@ -158,7 +158,6 @@ config MULTICORE_RAID456 bool "RAID-4/RAID-5/RAID-6 Multicore processing (EXPERIMENTAL)" depends on MD_RAID456 depends on SMP - depends on EXPERIMENTALIn this case
MULTICORE_RAID456and the related code should go as well... now that there are patches to supersede this implementation in md-next.
Can my original patch go through as-is for Linus's tree? Right now, this is the last use of EXPERIMENTAL in v3.9-rc1. If we can drop it, we can remove the config item entirely from v3.9.
-Kees
Signature · 2 lines
Kees Cook Chrome OS Security
Quoted 28 lines · On Mon, 4 Mar 2013 10:59:30 -0800 Kees Cook <[email protected]> wrote:
Quoted 13 lines · Dan Williams
Quoted 12 lines · Kees Cook
The
CONFIG_EXPERIMENTALconfig item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, remove it from any "depends on" lines in Kconfigs.Signed-off-by Kees Cook <[email protected]>Cc Arjan van de Ven <[email protected]>Cc Dan Williams <[email protected]>Cc Alasdair G Kergon <[email protected]>--- drivers/md/Kconfig | 1 - 1 file changed, 1 deletion(-)Quoted 13 lines
drivers/md/Kconfig config MULTICORE_RAID456 · line 161
Quoted 9 lines
drivers/md/Kconfig +0
-1@@ -158,7 +158,6 @@ config MULTICORE_RAID456 bool "RAID-4/RAID-5/RAID-6 Multicore processing (EXPERIMENTAL)" depends on MD_RAID456 depends on SMP - depends on EXPERIMENTALIn this case
MULTICORE_RAID456and the related code should go as well... now that there are patches to supersede this implementation in md-next.
Quoted 3 lines
Can my original patch go through as-is for Linus's tree? Right now, this is the last use of EXPERIMENTAL in v3.9-rc1. If we can drop it, we can remove the config item entirely from v3.9.
My pull request which removes CONFIG_MULTICORE_RAID456 completely was a little late and missed -rc1. Hopefully it will appear soon.
But if it isn't gone by -rc2, I have no objection to your patch going in then.
NeilBrown
Quoted 30 lines · NeilBrown
Quoted 28 lines · On Mon, 4 Mar 2013 10:59:30 -0800 Kees Cook <[email protected]> wrote:
Quoted 26 lines · Dan Williams
Quoted 17 lines · Kees Cook
The
CONFIG_EXPERIMENTALconfig item has not carried much meaning for a while now and is almost always enabled by default. As agreed during the Linux kernel summit, remove it from any "depends on" lines in Kconfigs.Signed-off-by Kees Cook <[email protected]>Cc Arjan van de Ven <[email protected]>Cc Dan Williams <[email protected]>Cc Alasdair G Kergon <[email protected]>--- drivers/md/Kconfig | 1 - 1 file changed, 1 deletion(-)drivers/md/Kconfig +0
-0drivers/md/Kconfig config MULTICORE_RAID456 · line 161
Quoted 4 lines
drivers/md/Kconfig +0
-1@@ -158,7 +158,6 @@ config MULTICORE_RAID456 bool "RAID-4/RAID-5/RAID-6 Multicore processing (EXPERIMENTAL)" depends on MD_RAID456 depends on SMP - depends on EXPERIMENTALIn this case
MULTICORE_RAID456and the related code should go as well... now that there are patches to supersede this implementation in md-next.
Quoted 7 lines
Quoted 3 lines
Can my original patch go through as-is for Linus's tree? Right now, this is the last use of EXPERIMENTAL in v3.9-rc1. If we can drop it, we can remove the config item entirely from v3.9.
My pull request which removes
CONFIG_MULTICORE_RAID456completely was a little late and missed -rc1. Hopefully it will appear soon.
But if it isn't gone by -rc2, I have no objection to your patch going in then.
Ah-ha! Okay, it sounded like the other stuff was scheduled for 3.10. If it's going into 3.9, then I'll just wait for -rc2 before pushing the final removal patch.
Thanks!
-Kees
Signature · 2 lines
Kees Cook Chrome OS Security