if: pimp nr_requests

This commit is contained in:
Thomas Schoebel-Theuer 2017-04-07 08:24:20 +02:00
parent 27be605623
commit 84ff94faec
3 changed files with 5 additions and 0 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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),
{}
};