mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-05 17:50:12 +07:00
[BLOCK] kill generic max_back_kb handling
This patch kills max_back_kb handling from elv_dispatch_sort() and kills max_back_kb field from struct request_queue. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jens Axboe <axboe@suse.de>
This commit is contained in:
parent
4c9f783640
commit
cb19833dcc
@ -136,7 +136,6 @@ static int elevator_attach(request_queue_t *q, struct elevator_type *e,
|
|||||||
q->elevator = eq;
|
q->elevator = eq;
|
||||||
q->end_sector = 0;
|
q->end_sector = 0;
|
||||||
q->boundary_rq = NULL;
|
q->boundary_rq = NULL;
|
||||||
q->max_back_kb = 0;
|
|
||||||
|
|
||||||
if (eq->ops->elevator_init_fn)
|
if (eq->ops->elevator_init_fn)
|
||||||
ret = eq->ops->elevator_init_fn(q, eq);
|
ret = eq->ops->elevator_init_fn(q, eq);
|
||||||
@ -227,15 +226,12 @@ void elevator_exit(elevator_t *e)
|
|||||||
void elv_dispatch_sort(request_queue_t *q, struct request *rq)
|
void elv_dispatch_sort(request_queue_t *q, struct request *rq)
|
||||||
{
|
{
|
||||||
sector_t boundary;
|
sector_t boundary;
|
||||||
unsigned max_back;
|
|
||||||
struct list_head *entry;
|
struct list_head *entry;
|
||||||
|
|
||||||
if (q->last_merge == rq)
|
if (q->last_merge == rq)
|
||||||
q->last_merge = NULL;
|
q->last_merge = NULL;
|
||||||
|
|
||||||
boundary = q->end_sector;
|
boundary = q->end_sector;
|
||||||
max_back = q->max_back_kb * 2;
|
|
||||||
boundary = boundary > max_back ? boundary - max_back : 0;
|
|
||||||
|
|
||||||
list_for_each_prev(entry, &q->queue_head) {
|
list_for_each_prev(entry, &q->queue_head) {
|
||||||
struct request *pos = list_entry_rq(entry);
|
struct request *pos = list_entry_rq(entry);
|
||||||
|
@ -339,7 +339,6 @@ struct request_queue
|
|||||||
*/
|
*/
|
||||||
sector_t end_sector;
|
sector_t end_sector;
|
||||||
struct request *boundary_rq;
|
struct request *boundary_rq;
|
||||||
unsigned int max_back_kb;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Auto-unplugging state
|
* Auto-unplugging state
|
||||||
|
Loading…
Reference in New Issue
Block a user