2 * IO priority handling declarations and helper functions common to the
3 * libaio and io_uring engines.
11 /* read and writes only, no trim */
12 #define CMDPRIO_RWDIR_CNT 2
20 struct cmdprio_options {
21 unsigned int percentage[CMDPRIO_RWDIR_CNT];
22 unsigned int class[CMDPRIO_RWDIR_CNT];
23 unsigned int level[CMDPRIO_RWDIR_CNT];
28 struct cmdprio_options *options;
29 unsigned int bssplit_nr[CMDPRIO_RWDIR_CNT];
30 struct bssplit *bssplit[CMDPRIO_RWDIR_CNT];
34 bool fio_cmdprio_set_ioprio(struct thread_data *td, struct cmdprio *cmdprio,
37 void fio_cmdprio_cleanup(struct cmdprio *cmdprio);
39 int fio_cmdprio_init(struct thread_data *td, struct cmdprio *cmdprio,
40 struct cmdprio_options *options);