Skip to content

Commit

Permalink
block: Remove elevator_change()
Browse files Browse the repository at this point in the history
Since commit 8425339 ("remove the mg_disk driver") removed the
only caller of elevator_change(), also remove the elevator_change()
function itself.

Signed-off-by: Bart Van Assche <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Markus Trippelsdorf <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Bart Van Assche authored and axboe committed May 2, 2017
1 parent 08c521a commit c033269
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -1088,19 +1088,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 &
Expand Down
1 change: 0 additions & 1 deletion include/linux/elevator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);
Expand Down

0 comments on commit c033269

Please sign in to comment.