History

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.

Damien Le Moal committed 7 years ago

Commit 36847a01 parent 3a10f992 files · +0 −14Browse files

Unified · Split

2 files
  1. Documentation/block/biodoc.txt +0 −5
  2. include/linux/elevator.h +0 −9
Documentation/block/biodoc.txt+0−5
@@ -843,11 +843,6 @@ elevator_latter_req_fn These return the request before or after the · 842 unmodified lines
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+0−9
@@ -160,15 +160,6 @@ extern struct request *elv_rb_find(struct rb_root *, sector_t); · 159 unmodified lines
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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t