mirror of
https://github.com/schoebel/mars
synced 2025-03-11 07:47:41 +00:00
if: pimp nr_requests
This commit is contained in:
parent
27be605623
commit
84ff94faec
@ -77,6 +77,8 @@
|
||||
// end_remove_this
|
||||
///////////////////////// global tuning ////////////////////////
|
||||
|
||||
int if_nr_requests = 1024;
|
||||
|
||||
int if_throttle_start_size = 0; // in kb
|
||||
EXPORT_SYMBOL_GPL(if_throttle_start_size);
|
||||
|
||||
@ -1031,6 +1033,7 @@ static int if_switch(struct if_brick *brick)
|
||||
#endif
|
||||
|
||||
// end_remove_this
|
||||
q->nr_requests = if_nr_requests;
|
||||
// point of no return
|
||||
MARS_DBG("add_disk()\n");
|
||||
add_disk(disk);
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
///////////////////////// global tuning ////////////////////////
|
||||
|
||||
extern int if_nr_requests;
|
||||
extern int if_throttle_start_size; // in kb
|
||||
extern struct mars_limiter if_throttle;
|
||||
|
||||
|
@ -244,6 +244,7 @@ struct ctl_table io_tuning_table[] = {
|
||||
THRESHOLD_ENTRIES(&aio_io_threshold[0], "aio_io_r"),
|
||||
THRESHOLD_ENTRIES(&aio_io_threshold[1], "aio_io_w"),
|
||||
THRESHOLD_ENTRIES(&aio_sync_threshold, "aio_sync"),
|
||||
INT_ENTRY("if_nr_requests", if_nr_requests, 0600),
|
||||
{}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user