X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fcmdprio.c;h=153e36911a458e8c746d1b4a23bb3aa49c7a8334;hb=79012fece0a0ecb02ad6a3322913980efdb1d726;hp=dd358754de4d34d24037df7ed621327342a80e27;hpb=c7098832ef5d9e66871287e12a4e6b81c58a874b;p=fio.git diff --git a/engines/cmdprio.c b/engines/cmdprio.c index dd358754..153e3691 100644 --- a/engines/cmdprio.c +++ b/engines/cmdprio.c @@ -267,7 +267,8 @@ static int fio_cmdprio_percentage(struct cmdprio *cmdprio, struct io_u *io_u, * to be set. If the random percentage value is within the user specified * percentage of I/Os that should use a cmdprio priority value (rather than * the default priority), then this function updates the io_u with an ioprio - * value as defined by the cmdprio/cmdprio_class or cmdprio_bssplit options. + * value as defined by the cmdprio/cmdprio_hint/cmdprio_class or + * cmdprio_bssplit options. * * Return true if the io_u ioprio was changed and false otherwise. */ @@ -319,7 +320,7 @@ static int fio_cmdprio_gen_perc(struct thread_data *td, struct cmdprio *cmdprio) { struct cmdprio_options *options = cmdprio->options; struct cmdprio_prio *prio; - struct cmdprio_values values[CMDPRIO_RWDIR_CNT] = {0}; + struct cmdprio_values values[CMDPRIO_RWDIR_CNT] = {}; struct thread_stat *ts = &td->ts; enum fio_ddir ddir; int ret; @@ -342,7 +343,8 @@ static int fio_cmdprio_gen_perc(struct thread_data *td, struct cmdprio *cmdprio) prio = &cmdprio->perc_entry[ddir]; prio->perc = options->percentage[ddir]; prio->prio = ioprio_value(options->class[ddir], - options->level[ddir]); + options->level[ddir], + options->hint[ddir]); assign_clat_prio_index(prio, &values[ddir]); ret = init_ts_clat_prio(ts, ddir, &values[ddir]); @@ -368,8 +370,8 @@ static int fio_cmdprio_parse_and_gen_bssplit(struct thread_data *td, struct cmdprio *cmdprio) { struct cmdprio_options *options = cmdprio->options; - struct cmdprio_parse_result parse_res[CMDPRIO_RWDIR_CNT] = {0}; - struct cmdprio_values values[CMDPRIO_RWDIR_CNT] = {0}; + struct cmdprio_parse_result parse_res[CMDPRIO_RWDIR_CNT] = {}; + struct cmdprio_values values[CMDPRIO_RWDIR_CNT] = {}; struct thread_stat *ts = &td->ts; int ret, implicit_cmdprio; enum fio_ddir ddir; @@ -400,7 +402,8 @@ static int fio_cmdprio_parse_and_gen_bssplit(struct thread_data *td, goto err; implicit_cmdprio = ioprio_value(options->class[ddir], - options->level[ddir]); + options->level[ddir], + options->hint[ddir]); ret = fio_cmdprio_generate_bsprio_desc(&cmdprio->bsprio_desc[ddir], &parse_res[ddir],