Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Marcos Paulo de Souza and committed by
Jens Axboe
85c0a037 cb8acabb

-20
-6
Documentation/admin-guide/kernel-parameters.txt
··· 1197 1197 See comment before function elanfreq_setup() in 1198 1198 arch/x86/kernel/cpu/cpufreq/elanfreq.c. 1199 1199 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 - 1206 1200 elfcorehdr=[size[KMG]@]offset[KMG] [IA64,PPC,SH,X86,S390] 1207 1201 Specifies physical address of start of kernel core 1208 1202 image elf header and optionally the size. Generally
-14
block/elevator.c
··· 135 135 return e; 136 136 } 137 137 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 - 152 138 static struct kobj_type elv_ktype; 153 139 154 140 struct elevator_queue *elevator_alloc(struct request_queue *q,