block: deadline: Optimize for non-rotational
This commit is contained in:
parent
7d2fb04168
commit
b2e37cb38d
|
@ -17,10 +17,10 @@
|
||||||
/*
|
/*
|
||||||
* See Documentation/block/deadline-iosched.txt
|
* See Documentation/block/deadline-iosched.txt
|
||||||
*/
|
*/
|
||||||
static const int read_expire = HZ / 2; /* max time before a read is submitted. */
|
static const int read_expire = HZ / 4; /* max time before a read is submitted. */
|
||||||
static const int write_expire = 5 * HZ; /* ditto for writes, these limits are SOFT! */
|
static const int write_expire = 2 * HZ; /* ditto for writes, these limits are SOFT! */
|
||||||
static const int writes_starved = 2; /* max times reads can starve a write */
|
static const int writes_starved = 1; /* max times reads can starve a write */
|
||||||
static const int fifo_batch = 16; /* # of sequential requests treated as one
|
static const int fifo_batch = 8; /* # of sequential requests treated as one
|
||||||
by the above parameters. For throughput. */
|
by the above parameters. For throughput. */
|
||||||
|
|
||||||
struct deadline_data {
|
struct deadline_data {
|
||||||
|
@ -31,7 +31,7 @@ struct deadline_data {
|
||||||
/*
|
/*
|
||||||
* requests (deadline_rq s) are present on both sort_list and fifo_list
|
* requests (deadline_rq s) are present on both sort_list and fifo_list
|
||||||
*/
|
*/
|
||||||
struct rb_root sort_list[2];
|
struct rb_root sort_list[2];
|
||||||
struct list_head fifo_list[2];
|
struct list_head fifo_list[2];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user