Skip to content

Commit

Permalink
elevator: remove an outdated comment in elevator_change
Browse files Browse the repository at this point in the history
mq is no longer a special case.

Signed-off-by: Jinlong Chen <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/cbf47824fc726440371e74c867bf635ae1b671a3.1669126766.git.nickyc975@zju.edu.cn
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
nickyc975 authored and axboe committed Nov 23, 2022
1 parent f69b5e8 commit 4284354
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,9 +721,6 @@ static int elevator_change(struct request_queue *q, const char *elevator_name)
if (!blk_queue_registered(q))
return -ENOENT;

/*
* Special case for mq, turn off scheduling
*/
if (!strncmp(elevator_name, "none", 4)) {
if (q->elevator)
elevator_disable(q);
Expand Down

0 comments on commit 4284354

Please sign in to comment.