linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Remove elevator kernel parameter
@ 2019-07-14  5:34 Marcos Paulo de Souza
  2019-07-14  5:34 ` [PATCH 1/4] block: elevator.c: Remove now unused elevator= argument Marcos Paulo de Souza
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Marcos Paulo de Souza @ 2019-07-14  5:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-block, linux-doc, Marcos Paulo de Souza

After the first patch sent[1], together with some background from Jens[2], this
patchset aims to remove completely elevator kernel parameter, since it is not
being used since blk-mq was set by default.

Along with elevator code, some documentation was also updated to remove elevator
references.

Please review, thanks.

[1]: https://lkml.org/lkml/2019/7/12/1008
[2]: https://lkml.org/lkml/2019/7/13/232

Marcos Paulo de Souza (4):
  block: elevator.c: Remove now unused elevator= argument
  kernel-parameters.txt: Remove elevator argument
  Documenation: switching-sched: Remove notes about elevator argument
  Documentation:kernel-per-CPU-kthreads.txt: Remove reference to
    elevator=

 Documentation/admin-guide/kernel-parameters.txt |  6 ------
 Documentation/block/switching-sched.txt         |  4 ----
 Documentation/kernel-per-CPU-kthreads.txt       |  8 +++-----
 block/elevator.c                                | 14 --------------
 4 files changed, 3 insertions(+), 29 deletions(-)

-- 
2.22.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 1/4] block: elevator.c: Remove now unused elevator= argument
  2019-07-14  5:34 [PATCH 0/4] Remove elevator kernel parameter Marcos Paulo de Souza
@ 2019-07-14  5:34 ` Marcos Paulo de Souza
  2019-07-19 13:36   ` Hannes Reinecke
  2019-07-22 23:51   ` Bob Liu
  2019-07-14  5:34 ` [PATCH 2/4] kernel-parameters.txt: Remove elevator argument Marcos Paulo de Souza
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 11+ messages in thread
From: Marcos Paulo de Souza @ 2019-07-14  5:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-block, linux-doc, Marcos Paulo de Souza, Jens Axboe

Since the inclusion of blk-mq, elevator argument was not being
considered anymore, and it's utility died long with the legacy IO path,
now removed too.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
---
 block/elevator.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/block/elevator.c b/block/elevator.c
index 2f17d66d0e61..f56d9c7d5cbc 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -135,20 +135,6 @@ static struct elevator_type *elevator_get(struct request_queue *q,
 	return e;
 }
 
-static char chosen_elevator[ELV_NAME_MAX];
-
-static int __init elevator_setup(char *str)
-{
-	/*
-	 * Be backwards-compatible with previous kernels, so users
-	 * won't get the wrong elevator.
-	 */
-	strncpy(chosen_elevator, str, sizeof(chosen_elevator) - 1);
-	return 1;
-}
-
-__setup("elevator=", elevator_setup);
-
 static struct kobj_type elv_ktype;
 
 struct elevator_queue *elevator_alloc(struct request_queue *q,
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 2/4] kernel-parameters.txt: Remove elevator argument
  2019-07-14  5:34 [PATCH 0/4] Remove elevator kernel parameter Marcos Paulo de Souza
  2019-07-14  5:34 ` [PATCH 1/4] block: elevator.c: Remove now unused elevator= argument Marcos Paulo de Souza
@ 2019-07-14  5:34 ` Marcos Paulo de Souza
  2019-07-19 13:36   ` Hannes Reinecke
  2019-07-14  5:34 ` [PATCH 3/4] Documenation: switching-sched: Remove notes about " Marcos Paulo de Souza
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 11+ messages in thread
From: Marcos Paulo de Souza @ 2019-07-14  5:34 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-block, linux-doc, Marcos Paulo de Souza, Jonathan Corbet,
	Thomas Gleixner, Kees Cook, Andrew Morton, Ingo Molnar,
	Mauro Carvalho Chehab, Paul E. McKenney, Josh Poimboeuf,
	Logan Gunthorpe, Lu Baolu, Andy Lutomirski

This argument was not being used since the legacy IO path was removed,
when blk-mq was enabled by default. So removed it from the kernel
parameters documentation.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
---
 Documentation/admin-guide/kernel-parameters.txt | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
index 099c5a4be95b..2f47b20ee413 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -1197,12 +1197,6 @@
 			See comment before function elanfreq_setup() in
 			arch/x86/kernel/cpu/cpufreq/elanfreq.c.
 
-	elevator=	[IOSCHED]
-			Format: { "mq-deadline" | "kyber" | "bfq" }
-			See Documentation/block/deadline-iosched.txt,
-			Documentation/block/kyber-iosched.txt and
-			Documentation/block/bfq-iosched.txt for details.
-
 	elfcorehdr=[size[KMG]@]offset[KMG] [IA64,PPC,SH,X86,S390]
 			Specifies physical address of start of kernel core
 			image elf header and optionally the size. Generally
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 3/4] Documenation: switching-sched: Remove notes about elevator argument
  2019-07-14  5:34 [PATCH 0/4] Remove elevator kernel parameter Marcos Paulo de Souza
  2019-07-14  5:34 ` [PATCH 1/4] block: elevator.c: Remove now unused elevator= argument Marcos Paulo de Souza
  2019-07-14  5:34 ` [PATCH 2/4] kernel-parameters.txt: Remove elevator argument Marcos Paulo de Souza
@ 2019-07-14  5:34 ` Marcos Paulo de Souza
  2019-07-19 13:37   ` Hannes Reinecke
  2019-07-14  5:34 ` [PATCH 4/4] Documentation:kernel-per-CPU-kthreads.txt: Remove reference to elevator= Marcos Paulo de Souza
  2019-07-25 20:04 ` [PATCH 0/4] Remove elevator kernel parameter Marcos Paulo de Souza
  4 siblings, 1 reply; 11+ messages in thread
From: Marcos Paulo de Souza @ 2019-07-14  5:34 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-block, linux-doc, Marcos Paulo de Souza, Jonathan Corbet,
	Jens Axboe, Andreas Herrmann

This argument was ignored since blk-mq was set as default, so remove it
from documentation.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
---
 Documentation/block/switching-sched.txt | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/Documentation/block/switching-sched.txt b/Documentation/block/switching-sched.txt
index 7977f6fb8b20..431d56471227 100644
--- a/Documentation/block/switching-sched.txt
+++ b/Documentation/block/switching-sched.txt
@@ -1,7 +1,3 @@
-To choose IO schedulers at boot time, use the argument 'elevator=deadline'.
-'noop' and 'cfq' (the default) are also available. IO schedulers are assigned
-globally at boot time only presently.
-
 Each io queue has a set of io scheduler tunables associated with it. These
 tunables control how the io scheduler works. You can find these entries
 in:
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 4/4] Documentation:kernel-per-CPU-kthreads.txt: Remove reference to elevator=
  2019-07-14  5:34 [PATCH 0/4] Remove elevator kernel parameter Marcos Paulo de Souza
                   ` (2 preceding siblings ...)
  2019-07-14  5:34 ` [PATCH 3/4] Documenation: switching-sched: Remove notes about " Marcos Paulo de Souza
@ 2019-07-14  5:34 ` Marcos Paulo de Souza
  2019-07-19 13:37   ` Hannes Reinecke
  2019-07-25 20:04 ` [PATCH 0/4] Remove elevator kernel parameter Marcos Paulo de Souza
  4 siblings, 1 reply; 11+ messages in thread
From: Marcos Paulo de Souza @ 2019-07-14  5:34 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-block, linux-doc, Marcos Paulo de Souza, Jonathan Corbet

This argument was not being considered since blk-mq was set by default,
so removed this documentation to avoid confusion.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
---
 Documentation/kernel-per-CPU-kthreads.txt | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/Documentation/kernel-per-CPU-kthreads.txt b/Documentation/kernel-per-CPU-kthreads.txt
index 5623b9916411..c68c6c8c26a4 100644
--- a/Documentation/kernel-per-CPU-kthreads.txt
+++ b/Documentation/kernel-per-CPU-kthreads.txt
@@ -274,9 +274,7 @@ To reduce its OS jitter, do any of the following:
 		(based on an earlier one from Gilad Ben-Yossef) that
 		reduces or even eliminates vmstat overhead for some
 		workloads at https://lkml.org/lkml/2013/9/4/379.
-	e.	Boot with "elevator=noop" to avoid workqueue use by
-		the block layer.
-	f.	If running on high-end powerpc servers, build with
+	e.	If running on high-end powerpc servers, build with
 		CONFIG_PPC_RTAS_DAEMON=n.  This prevents the RTAS
 		daemon from running on each CPU every second or so.
 		(This will require editing Kconfig files and will defeat
@@ -284,12 +282,12 @@ To reduce its OS jitter, do any of the following:
 		due to the rtas_event_scan() function.
 		WARNING:  Please check your CPU specifications to
 		make sure that this is safe on your particular system.
-	g.	If running on Cell Processor, build your kernel with
+	f.	If running on Cell Processor, build your kernel with
 		CBE_CPUFREQ_SPU_GOVERNOR=n to avoid OS jitter from
 		spu_gov_work().
 		WARNING:  Please check your CPU specifications to
 		make sure that this is safe on your particular system.
-	h.	If running on PowerMAC, build your kernel with
+	g.	If running on PowerMAC, build your kernel with
 		CONFIG_PMAC_RACKMETER=n to disable the CPU-meter,
 		avoiding OS jitter from rackmeter_do_timer().
 
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH 1/4] block: elevator.c: Remove now unused elevator= argument
  2019-07-14  5:34 ` [PATCH 1/4] block: elevator.c: Remove now unused elevator= argument Marcos Paulo de Souza
@ 2019-07-19 13:36   ` Hannes Reinecke
  2019-07-22 23:51   ` Bob Liu
  1 sibling, 0 replies; 11+ messages in thread
From: Hannes Reinecke @ 2019-07-19 13:36 UTC (permalink / raw)
  To: Marcos Paulo de Souza, linux-kernel; +Cc: linux-block, linux-doc, Jens Axboe

On 7/14/19 7:34 AM, Marcos Paulo de Souza wrote:
> Since the inclusion of blk-mq, elevator argument was not being
> considered anymore, and it's utility died long with the legacy IO path,
> now removed too.
> 
> Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
> ---
>   block/elevator.c | 14 --------------
>   1 file changed, 14 deletions(-)
> 
> diff --git a/block/elevator.c b/block/elevator.c
> index 2f17d66d0e61..f56d9c7d5cbc 100644
> --- a/block/elevator.c
> +++ b/block/elevator.c
> @@ -135,20 +135,6 @@ static struct elevator_type *elevator_get(struct request_queue *q,
>   	return e;
>   }
>   
> -static char chosen_elevator[ELV_NAME_MAX];
> -
> -static int __init elevator_setup(char *str)
> -{
> -	/*
> -	 * Be backwards-compatible with previous kernels, so users
> -	 * won't get the wrong elevator.
> -	 */
> -	strncpy(chosen_elevator, str, sizeof(chosen_elevator) - 1);
> -	return 1;
> -}
> -
> -__setup("elevator=", elevator_setup);
> -
>   static struct kobj_type elv_ktype;
>   
>   struct elevator_queue *elevator_alloc(struct request_queue *q,
> 
Reviewed-by: Hannes Reinecke <hare@suse.com>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke            Teamlead Storage & Networking
hare@suse.de                              +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah
HRB 21284 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/4] kernel-parameters.txt: Remove elevator argument
  2019-07-14  5:34 ` [PATCH 2/4] kernel-parameters.txt: Remove elevator argument Marcos Paulo de Souza
@ 2019-07-19 13:36   ` Hannes Reinecke
  0 siblings, 0 replies; 11+ messages in thread
From: Hannes Reinecke @ 2019-07-19 13:36 UTC (permalink / raw)
  To: Marcos Paulo de Souza, linux-kernel
  Cc: linux-block, linux-doc, Jonathan Corbet, Thomas Gleixner,
	Kees Cook, Andrew Morton, Ingo Molnar, Mauro Carvalho Chehab,
	Paul E. McKenney, Josh Poimboeuf, Logan Gunthorpe, Lu Baolu,
	Andy Lutomirski

On 7/14/19 7:34 AM, Marcos Paulo de Souza wrote:
> This argument was not being used since the legacy IO path was removed,
> when blk-mq was enabled by default. So removed it from the kernel
> parameters documentation.
> 
> Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
> ---
>   Documentation/admin-guide/kernel-parameters.txt | 6 ------
>   1 file changed, 6 deletions(-)
> 
Reviewed-by: Hannes Reinecke <hare@suse.com>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke            Teamlead Storage & Networking
hare@suse.de                              +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah
HRB 21284 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 3/4] Documenation: switching-sched: Remove notes about elevator argument
  2019-07-14  5:34 ` [PATCH 3/4] Documenation: switching-sched: Remove notes about " Marcos Paulo de Souza
@ 2019-07-19 13:37   ` Hannes Reinecke
  0 siblings, 0 replies; 11+ messages in thread
From: Hannes Reinecke @ 2019-07-19 13:37 UTC (permalink / raw)
  To: Marcos Paulo de Souza, linux-kernel
  Cc: linux-block, linux-doc, Jonathan Corbet, Jens Axboe, Andreas Herrmann

On 7/14/19 7:34 AM, Marcos Paulo de Souza wrote:
> This argument was ignored since blk-mq was set as default, so remove it
> from documentation.
> 
> Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
> ---
>   Documentation/block/switching-sched.txt | 4 ----
>   1 file changed, 4 deletions(-)
> 
> diff --git a/Documentation/block/switching-sched.txt b/Documentation/block/switching-sched.txt
> index 7977f6fb8b20..431d56471227 100644
> --- a/Documentation/block/switching-sched.txt
> +++ b/Documentation/block/switching-sched.txt
> @@ -1,7 +1,3 @@
> -To choose IO schedulers at boot time, use the argument 'elevator=deadline'.
> -'noop' and 'cfq' (the default) are also available. IO schedulers are assigned
> -globally at boot time only presently.
> -
>   Each io queue has a set of io scheduler tunables associated with it. These
>   tunables control how the io scheduler works. You can find these entries
>   in:
> 
Reviewed-by: Hannes Reinecke <hare@suse.com>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke            Teamlead Storage & Networking
hare@suse.de                              +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah
HRB 21284 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 4/4] Documentation:kernel-per-CPU-kthreads.txt: Remove reference to elevator=
  2019-07-14  5:34 ` [PATCH 4/4] Documentation:kernel-per-CPU-kthreads.txt: Remove reference to elevator= Marcos Paulo de Souza
@ 2019-07-19 13:37   ` Hannes Reinecke
  0 siblings, 0 replies; 11+ messages in thread
From: Hannes Reinecke @ 2019-07-19 13:37 UTC (permalink / raw)
  To: Marcos Paulo de Souza, linux-kernel
  Cc: linux-block, linux-doc, Jonathan Corbet

On 7/14/19 7:34 AM, Marcos Paulo de Souza wrote:
> This argument was not being considered since blk-mq was set by default,
> so removed this documentation to avoid confusion.
> 
> Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
> ---
>   Documentation/kernel-per-CPU-kthreads.txt | 8 +++-----
>   1 file changed, 3 insertions(+), 5 deletions(-)
> 
Reviewed-by: Hannes Reinecke <hare@suse.com>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke            Teamlead Storage & Networking
hare@suse.de                              +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah
HRB 21284 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 1/4] block: elevator.c: Remove now unused elevator= argument
  2019-07-14  5:34 ` [PATCH 1/4] block: elevator.c: Remove now unused elevator= argument Marcos Paulo de Souza
  2019-07-19 13:36   ` Hannes Reinecke
@ 2019-07-22 23:51   ` Bob Liu
  1 sibling, 0 replies; 11+ messages in thread
From: Bob Liu @ 2019-07-22 23:51 UTC (permalink / raw)
  To: Marcos Paulo de Souza, linux-kernel; +Cc: linux-block, linux-doc, Jens Axboe

On 7/14/19 1:34 PM, Marcos Paulo de Souza wrote:
> Since the inclusion of blk-mq, elevator argument was not being
> considered anymore, and it's utility died long with the legacy IO path,
> now removed too.
> 
> Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
> ---
>  block/elevator.c | 14 --------------
>  1 file changed, 14 deletions(-)
> 
> diff --git a/block/elevator.c b/block/elevator.c
> index 2f17d66d0e61..f56d9c7d5cbc 100644
> --- a/block/elevator.c
> +++ b/block/elevator.c
> @@ -135,20 +135,6 @@ static struct elevator_type *elevator_get(struct request_queue *q,
>  	return e;
>  }
>  
> -static char chosen_elevator[ELV_NAME_MAX];
> -
> -static int __init elevator_setup(char *str)
> -{
> -	/*
> -	 * Be backwards-compatible with previous kernels, so users
> -	 * won't get the wrong elevator.
> -	 */
> -	strncpy(chosen_elevator, str, sizeof(chosen_elevator) - 1);
> -	return 1;
> -}
> -
> -__setup("elevator=", elevator_setup);
> -
>  static struct kobj_type elv_ktype;
>  
>  struct elevator_queue *elevator_alloc(struct request_queue *q,
> 

Reviewed-by: Bob Liu <bob.liu@oracle.com>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/4] Remove elevator kernel parameter
  2019-07-14  5:34 [PATCH 0/4] Remove elevator kernel parameter Marcos Paulo de Souza
                   ` (3 preceding siblings ...)
  2019-07-14  5:34 ` [PATCH 4/4] Documentation:kernel-per-CPU-kthreads.txt: Remove reference to elevator= Marcos Paulo de Souza
@ 2019-07-25 20:04 ` Marcos Paulo de Souza
  4 siblings, 0 replies; 11+ messages in thread
From: Marcos Paulo de Souza @ 2019-07-25 20:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-block, linux-doc

Hi Jens,

there are two reviewers for this patchset, can you take a look?

Thanks,
Marcos

On Sun, Jul 14, 2019 at 02:34:49AM -0300, Marcos Paulo de Souza wrote:
> After the first patch sent[1], together with some background from Jens[2], this
> patchset aims to remove completely elevator kernel parameter, since it is not
> being used since blk-mq was set by default.
> 
> Along with elevator code, some documentation was also updated to remove elevator
> references.
> 
> Please review, thanks.
> 
> [1]: https://lkml.org/lkml/2019/7/12/1008
> [2]: https://lkml.org/lkml/2019/7/13/232
> 
> Marcos Paulo de Souza (4):
>   block: elevator.c: Remove now unused elevator= argument
>   kernel-parameters.txt: Remove elevator argument
>   Documenation: switching-sched: Remove notes about elevator argument
>   Documentation:kernel-per-CPU-kthreads.txt: Remove reference to
>     elevator=
> 
>  Documentation/admin-guide/kernel-parameters.txt |  6 ------
>  Documentation/block/switching-sched.txt         |  4 ----
>  Documentation/kernel-per-CPU-kthreads.txt       |  8 +++-----
>  block/elevator.c                                | 14 --------------
>  4 files changed, 3 insertions(+), 29 deletions(-)
> 
> -- 
> 2.22.0
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-07-25 20:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-14  5:34 [PATCH 0/4] Remove elevator kernel parameter Marcos Paulo de Souza
2019-07-14  5:34 ` [PATCH 1/4] block: elevator.c: Remove now unused elevator= argument Marcos Paulo de Souza
2019-07-19 13:36   ` Hannes Reinecke
2019-07-22 23:51   ` Bob Liu
2019-07-14  5:34 ` [PATCH 2/4] kernel-parameters.txt: Remove elevator argument Marcos Paulo de Souza
2019-07-19 13:36   ` Hannes Reinecke
2019-07-14  5:34 ` [PATCH 3/4] Documenation: switching-sched: Remove notes about " Marcos Paulo de Souza
2019-07-19 13:37   ` Hannes Reinecke
2019-07-14  5:34 ` [PATCH 4/4] Documentation:kernel-per-CPU-kthreads.txt: Remove reference to elevator= Marcos Paulo de Souza
2019-07-19 13:37   ` Hannes Reinecke
2019-07-25 20:04 ` [PATCH 0/4] Remove elevator kernel parameter Marcos Paulo de Souza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).