Skip to contentSkip to conversation

block: Remove elevator_change()

PATCH In review Bart Van Assche 2 participants 2 messages May 1, 2017 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: Remove elevator_change()

Since commit 84253394927c ("remove the mg_disk driver") removed the only caller of elevator_change(), also remove the elevator_change() function itself.

Cc Christoph Hellwig <[email protected]>
Cc Markus Trippelsdorf <[email protected]>
---
 block/elevator.c         | 13 -------------
 include/linux/elevator.h |  1 -
 2 files changed, 14 deletions(-)
block/elevator.c +0 -13
index c7a4ee682033..ab726a5c0bf6 100644
@@ -1085,19 +1085,6 @@ static int __elevator_change(struct request_queue *q, const char *name)
 	return elevator_switch(q, e);
 }
 
-int elevator_change(struct request_queue *q, const char *name)
-{
-	int ret;
-
-	/* Protect q->elevator from elevator_init() */
-	mutex_lock(&q->sysfs_lock);
-	ret = __elevator_change(q, name);
-	mutex_unlock(&q->sysfs_lock);
-
-	return ret;
-}
-EXPORT_SYMBOL(elevator_change);
-
 static inline bool elv_support_iosched(struct request_queue *q)
 {
 	if (q->mq_ops && q->tag_set && (q->tag_set->flags &
include/linux/elevator.h +0 -1
index 3a216318ae73..d44840368ee7 100644
@@ -214,7 +214,6 @@ extern ssize_t elv_iosched_store(struct request_queue *, const char *, size_t);
 
 extern int elevator_init(struct request_queue *, char *);
 extern void elevator_exit(struct request_queue *, struct elevator_queue *);
-extern int elevator_change(struct request_queue *, const char *);
 extern bool elv_bio_merge_ok(struct request *, struct bio *);
 extern struct elevator_queue *elevator_alloc(struct request_queue *,
 					struct elevator_type *);
Signature · 1 line
2.12.2
maintainer
#1 lore raw
Quoted 3 lines · Bart Van Assche

Since commit 84253394927c ("remove the mg_disk driver") removed the only caller of elevator_change(), also remove the elevator_change() function itself.

Nice, thanks Bart. I thought s390 dasd used it as well, but looks like that got killed a while back.

Signature · 1 line
Jens Axboe