This is the per-I/O equivalent of the ioprio_set system call. When IOCB_FLAG_IOPRIO is set on the iocb aio_flags field, then we set the newly added kiocb ki_ioprio field to the value in the iocb aio_reqprio field. This patch depends on block: add ioprio_check_cap function.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -53,6 +53,7 @@ enum { · 52 unmodified lines | |||
| 53 | * is valid. | 53 | * is valid. |
| 54 | */ | 54 | */ |
| 55 | #define IOCB_FLAG_RESFD (1 << 0) | 55 | #define IOCB_FLAG_RESFD (1 << 0) |
| 56 | #define IOCB_FLAG_IOPRIO (1 << 1) | ||
| 56 | 57 | ||
| 57 | /* read() from /dev/aio returns these structures. */ | 58 | /* read() from /dev/aio returns these structures. */ |
| 58 | struct io_event { | 59 | struct io_event { |