| /Linux-v6.6/include/uapi/linux/ |
| D | ioprio.h | 16 #define IOPRIO_PRIO_CLASS(ioprio) \ argument 17 (((ioprio) >> IOPRIO_CLASS_SHIFT) & IOPRIO_CLASS_MASK) 18 #define IOPRIO_PRIO_DATA(ioprio) ((ioprio) & IOPRIO_PRIO_MASK) argument 45 #define IOPRIO_PRIO_LEVEL(ioprio) ((ioprio) & IOPRIO_LEVEL_MASK) argument 77 #define IOPRIO_PRIO_HINT(ioprio) \ argument 78 (((ioprio) >> IOPRIO_HINT_SHIFT) & IOPRIO_HINT_MASK)
|
| D | virtio_blk.h | 223 __virtio32 ioprio; member
|
| D | io_uring.h | 33 __u16 ioprio; /* ioprio for the request */ member
|
| /Linux-v6.6/block/ |
| D | ioprio.c | 33 int ioprio_check_cap(int ioprio) in ioprio_check_cap() argument 35 int class = IOPRIO_PRIO_CLASS(ioprio); in ioprio_check_cap() 36 int level = IOPRIO_PRIO_LEVEL(ioprio); in ioprio_check_cap() 69 SYSCALL_DEFINE3(ioprio_set, int, which, int, who, int, ioprio) in SYSCALL_DEFINE3() argument 77 ret = ioprio_check_cap(ioprio); in SYSCALL_DEFINE3() 90 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3() 100 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3() 125 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3() 157 prio = ioc->ioprio; in __get_task_ioprio() 197 ret = p->io_context->ioprio; in get_task_raw_ioprio()
|
| D | blk-ioc.c | 246 ioc->ioprio = IOPRIO_DEFAULT; in alloc_io_context() 251 int set_task_ioprio(struct task_struct *task, int ioprio) in set_task_ioprio() argument 265 err = security_task_setioprio(task, ioprio); in set_task_ioprio() 289 task->io_context->ioprio = ioprio; in set_task_ioprio() 306 } else if (ioprio_valid(ioc->ioprio)) { in __copy_io() 310 tsk->io_context->ioprio = ioc->ioprio; in __copy_io()
|
| D | Makefile | 11 genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o \ 21 obj-$(CONFIG_BLK_CGROUP_IOPRIO) += blk-ioprio.o
|
| D | bfq-iosched.h | 255 unsigned short ioprio, ioprio_class; member 492 int ioprio; member 1138 unsigned short bfq_ioprio_to_weight(int ioprio);
|
| D | bfq-iosched.c | 5516 ioprio_class = IOPRIO_PRIO_CLASS(bic->ioprio); in bfq_set_next_ioprio_data() 5531 bfqq->new_ioprio = IOPRIO_PRIO_LEVEL(bic->ioprio); in bfq_set_next_ioprio_data() 5535 bfqq->new_ioprio = IOPRIO_PRIO_LEVEL(bic->ioprio); in bfq_set_next_ioprio_data() 5565 int ioprio = bic->icq.ioc->ioprio; in bfq_check_ioprio_change() local 5571 if (unlikely(!bfqd) || likely(bic->ioprio == ioprio)) in bfq_check_ioprio_change() 5574 bic->ioprio = ioprio; in bfq_check_ioprio_change() 5662 int ioprio_class, int ioprio, int act_idx) in bfq_async_queue_prio() argument 5666 return &bfqg->async_bfqq[0][ioprio][act_idx]; in bfq_async_queue_prio() 5668 ioprio = IOPRIO_BE_NORM; in bfq_async_queue_prio() 5671 return &bfqg->async_bfqq[1][ioprio][act_idx]; in bfq_async_queue_prio() [all …]
|
| D | bfq-wf2q.c | 505 unsigned short bfq_ioprio_to_weight(int ioprio) in bfq_ioprio_to_weight() argument 507 return (IOPRIO_NR_LEVELS - ioprio) * BFQ_WEIGHT_CONVERSION_COEFF; in bfq_ioprio_to_weight() 727 bfqq->ioprio = in __bfq_entity_update_weight_prio()
|
| D | blk-merge.c | 817 if (req->ioprio != next->ioprio) in attempt_merge() 944 if (rq->ioprio != bio_prio(bio)) in blk_rq_merge_ok()
|
| D | mq-deadline.c | 801 u16 ioprio = req_get_ioprio(rq); in dd_insert_request() local 802 u8 ioprio_class = IOPRIO_PRIO_CLASS(ioprio); in dd_insert_request()
|
| /Linux-v6.6/include/linux/ |
| D | ioprio.h | 19 static inline bool ioprio_valid(unsigned short ioprio) in ioprio_valid() argument 21 unsigned short class = IOPRIO_PRIO_CLASS(ioprio); in ioprio_valid() 63 extern int set_task_ioprio(struct task_struct *task, int ioprio); 66 extern int ioprio_check_cap(int ioprio); 68 static inline int ioprio_check_cap(int ioprio) in ioprio_check_cap() argument
|
| D | iocontext.h | 103 unsigned short ioprio; member
|
| D | blk-mq.h | 140 unsigned short ioprio; member 205 return req->ioprio; in req_get_ioprio() 961 rq->ioprio = bio_prio(bio); in blk_rq_bio_prep()
|
| D | security.h | 171 extern int cap_task_setioprio(struct task_struct *p, int ioprio); 434 int security_task_setioprio(struct task_struct *p, int ioprio); 1172 static inline int security_task_setioprio(struct task_struct *p, int ioprio) in security_task_setioprio() argument 1174 return cap_task_setioprio(p, ioprio); in security_task_setioprio()
|
| /Linux-v6.6/Documentation/block/ |
| D | ioprio.rst | 90 static inline int ioprio_set(int which, int who, int ioprio) 92 return syscall(__NR_ioprio_set, which, who, ioprio); 119 int ioprio = 4, set = 0, ioprio_class = IOPRIO_CLASS_BE; 125 ioprio = strtol(optarg, NULL, 10); 146 ioprio = 7; 157 ioprio = ioprio_get(IOPRIO_WHO_PROCESS, pid); 159 printf("pid=%d, %d\n", pid, ioprio); 161 if (ioprio == -1) 164 ioprio_class = ioprio >> IOPRIO_CLASS_SHIFT; 165 ioprio = ioprio & 0xff; [all …]
|
| D | index.rst | 17 ioprio
|
| D | bfq-iosched.rst | 288 - ioprio classes are served in strict priority order, i.e., 315 per-process ioprio and weight 321 weight = (IOPRIO_BE_NR - ioprio) * 10. 515 same share of the whole group bandwidth, unless the ioprio of the 570 The linear mapping between ioprio and weights, described at the beginning 572 IOPRIO_BE_NR*10 are mapped to ioprio 0.
|
| /Linux-v6.6/io_uring/ |
| D | opdef.c | 63 .ioprio = 1, 76 .ioprio = 1, 94 .ioprio = 1, 107 .ioprio = 1, 135 .ioprio = 1, 149 .ioprio = 1, 174 .ioprio = 1, /* used for flags */ 234 .ioprio = 1, 247 .ioprio = 1, 269 .ioprio = 1, [all …]
|
| D | opdef.h | 25 unsigned ioprio : 1; member
|
| D | rw.c | 79 unsigned ioprio; in io_prep_rw() local 98 ioprio = READ_ONCE(sqe->ioprio); in io_prep_rw() 99 if (ioprio) { in io_prep_rw() 100 ret = ioprio_check_cap(ioprio); in io_prep_rw() 104 rw->kiocb.ki_ioprio = ioprio; in io_prep_rw()
|
| D | net.c | 279 sr->flags = READ_ONCE(sqe->ioprio); in io_sendmsg_prep() 582 sr->flags = READ_ONCE(sqe->ioprio); in io_recvmsg_prep() 998 zc->flags = READ_ONCE(sqe->ioprio); in io_send_zc_prep() 1302 flags = READ_ONCE(sqe->ioprio); in io_accept_prep()
|
| /Linux-v6.6/drivers/block/rnbd/ |
| D | rnbd-srv-trace.h | 82 __field(u16, ioprio) 95 __entry->ioprio = le16_to_cpu(msg->prio); 110 __entry->ioprio,
|
| /Linux-v6.6/include/trace/events/ |
| D | io_uring.h | 508 __field( u8, ioprio ) 529 __entry->ioprio = sqe->ioprio; 551 __entry->flags, __entry->ioprio,
|
| /Linux-v6.6/tools/testing/selftests/net/ |
| D | io_uring_zerocopy_tx.c | 288 sqe->ioprio = zc_flags; in io_uring_prep_sendzc() 407 sqe->ioprio |= IORING_RECVSEND_FIXED_BUF; in do_tx()
|