Skip to content

Commit 85c0a03

Browse files
marcospsaxboe
authored andcommitted
block: elevator.c: Remove now unused elevator= argument
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. Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Bob Liu <bob.liu@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Fold with doc removal patch. Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent cb8acab commit 85c0a03

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

‎Documentation/admin-guide/kernel-parameters.txt‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,12 +1197,6 @@
11971197
See comment before function elanfreq_setup() in
11981198
arch/x86/kernel/cpu/cpufreq/elanfreq.c.
11991199

1200-
elevator= [IOSCHED]
1201-
Format: { "mq-deadline" | "kyber" | "bfq" }
1202-
See Documentation/block/deadline-iosched.rst,
1203-
Documentation/block/kyber-iosched.rst and
1204-
Documentation/block/bfq-iosched.rst for details.
1205-
12061200
elfcorehdr=[size[KMG]@]offset[KMG] [IA64,PPC,SH,X86,S390]
12071201
Specifies physical address of start of kernel core
12081202
image elf header and optionally the size. Generally

‎block/elevator.c‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -135,20 +135,6 @@ static struct elevator_type *elevator_get(struct request_queue *q,
135135
return e;
136136
}
137137

138-
static char chosen_elevator[ELV_NAME_MAX];
139-
140-
static int __init elevator_setup(char *str)
141-
{
142-
/*
143-
* Be backwards-compatible with previous kernels, so users
144-
* won't get the wrong elevator.
145-
*/
146-
strncpy(chosen_elevator, str, sizeof(chosen_elevator) - 1);
147-
return 1;
148-
}
149-
150-
__setup("elevator=", elevator_setup);
151-
152138
static struct kobj_type elv_ktype;
153139

154140
struct elevator_queue *elevator_alloc(struct request_queue *q,

0 commit comments

Comments
 (0)