Skip to content

Commit 36847a0

Browse files
damien-lemoalaxboe
authored andcommitted
block: Remove unused definitions
The ELV_MQUEUE_XXX definitions in include/linux/elevator.h are unused since the removal of elevator_may_queue_fn in kernel 5.0. Remove these definitions and also remove the documentation of elevator_may_queue_fn in Documentiation/block/biodoc.txt. Acked-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 3a10f99 commit 36847a0

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎Documentation/block/biodoc.txt‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -843,11 +843,6 @@ elevator_latter_req_fn These return the request before or after the
843843

844844
elevator_completed_req_fn called when a request is completed.
845845

846-
elevator_may_queue_fn returns true if the scheduler wants to allow the
847-
current context to queue a new request even if
848-
it is over the queue limit. This must be used
849-
very carefully!!
850-
851846
elevator_set_req_fn
852847
elevator_put_req_fn Must be used to allocate and free any elevator
853848
specific storage for a request.

‎include/linux/elevator.h‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,6 @@ extern struct request *elv_rb_find(struct rb_root *, sector_t);
160160
#define ELEVATOR_INSERT_FLUSH 5
161161
#define ELEVATOR_INSERT_SORT_MERGE 6
162162

163-
/*
164-
* return values from elevator_may_queue_fn
165-
*/
166-
enum {
167-
ELV_MQUEUE_MAY,
168-
ELV_MQUEUE_NO,
169-
ELV_MQUEUE_MUST,
170-
};
171-
172163
#define rq_end_sector(rq) (blk_rq_pos(rq) + blk_rq_sectors(rq))
173164
#define rb_entry_rq(node) rb_entry((node), struct request, rb_node)
174165

0 commit comments

Comments
 (0)