Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] cfq-iosched: busy_rr fairness fix

Now that we select busy_rr for possible service, insert entries at the
back of that list instead of at the front.

Signed-off-by: Jens Axboe <axboe@suse.de>

+5 -2
+5 -2
block/cfq-iosched.c
··· 501 501 502 502 /* 503 503 * if queue was preempted, just add to front to be fair. busy_rr 504 - * isn't sorted. 504 + * isn't sorted, but insert at the back for fairness. 505 505 */ 506 506 if (preempted || list == &cfqd->busy_rr) { 507 - list_add(&cfqq->cfq_list, list); 507 + if (preempted) 508 + list = list->prev; 509 + 510 + list_add_tail(&cfqq->cfq_list, list); 508 511 return; 509 512 } 510 513