[4/4] elevator: remove an outdated comment in elevator_change

Message ID cbf47824fc726440371e74c867bf635ae1b671a3.1669126766.git.nickyc975@zju.edu.cn
State New
Headers
Series random improvments and cleanups for elevator.c |

Commit Message

Jinlong Chen Nov. 22, 2022, 2:21 p.m. UTC
  mq is no longer a special case.

Signed-off-by: Jinlong Chen <nickyc975@zju.edu.cn>
---
 block/elevator.c | 3 ---
 1 file changed, 3 deletions(-)
  

Comments

Christoph Hellwig Nov. 23, 2022, 7:38 a.m. UTC | #1
On Tue, Nov 22, 2022 at 10:21:26PM +0800, Jinlong Chen wrote:
> mq is no longer a special case.

But switching to none still is a special case.  Then again this should
be very obvious from the code, so I'm fine the comment removal:

Reviewed-by: Christoph Hellwig <hch@lst.de>
  

Patch

diff --git a/block/elevator.c b/block/elevator.c
index 5287b39cd7a9..599413620558 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -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);