Home
last modified time | relevance | path

Searched refs:ioprio (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.1.9/block/
Dioprio.c33 int ioprio_check_cap(int ioprio) in ioprio_check_cap() argument
35 int class = IOPRIO_PRIO_CLASS(ioprio); in ioprio_check_cap()
36 int data = IOPRIO_PRIO_DATA(ioprio); in ioprio_check_cap()
68 SYSCALL_DEFINE3(ioprio_set, int, which, int, who, int, ioprio) in SYSCALL_DEFINE3() argument
76 ret = ioprio_check_cap(ioprio); in SYSCALL_DEFINE3()
89 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
99 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
124 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
156 prio = ioc->ioprio; in __get_task_ioprio()
196 ret = p->io_context->ioprio; in get_task_raw_ioprio()
Dblk-ioc.c250 ioc->ioprio = IOPRIO_DEFAULT; in alloc_io_context()
255 int set_task_ioprio(struct task_struct *task, int ioprio) in set_task_ioprio() argument
269 err = security_task_setioprio(task, ioprio); in set_task_ioprio()
293 task->io_context->ioprio = ioprio; in set_task_ioprio()
310 } else if (ioprio_valid(ioc->ioprio)) { in __copy_io()
314 tsk->io_context->ioprio = ioc->ioprio; in __copy_io()
DMakefile11 genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o \
21 obj-$(CONFIG_BLK_CGROUP_IOPRIO) += blk-ioprio.o
Dbfq-iosched.h244 unsigned short ioprio, ioprio_class; member
409 int ioprio; member
1059 unsigned short bfq_ioprio_to_weight(int ioprio);
Dbfq-iosched.c5432 ioprio_class = IOPRIO_PRIO_CLASS(bic->ioprio); in bfq_set_next_ioprio_data()
5447 bfqq->new_ioprio = IOPRIO_PRIO_DATA(bic->ioprio); in bfq_set_next_ioprio_data()
5451 bfqq->new_ioprio = IOPRIO_PRIO_DATA(bic->ioprio); in bfq_set_next_ioprio_data()
5481 int ioprio = bic->icq.ioc->ioprio; in bfq_check_ioprio_change() local
5487 if (unlikely(!bfqd) || likely(bic->ioprio == ioprio)) in bfq_check_ioprio_change()
5490 bic->ioprio = ioprio; in bfq_check_ioprio_change()
5572 int ioprio_class, int ioprio) in bfq_async_queue_prio() argument
5576 return &bfqg->async_bfqq[0][ioprio]; in bfq_async_queue_prio()
5578 ioprio = IOPRIO_BE_NORM; in bfq_async_queue_prio()
5581 return &bfqg->async_bfqq[1][ioprio]; in bfq_async_queue_prio()
[all …]
Dblk-merge.c786 if (req->ioprio != next->ioprio) in attempt_merge()
911 if (rq->ioprio != bio_prio(bio)) in blk_rq_merge_ok()
Dbfq-wf2q.c491 unsigned short bfq_ioprio_to_weight(int ioprio) in bfq_ioprio_to_weight() argument
493 return (IOPRIO_NR_LEVELS - ioprio) * BFQ_WEIGHT_CONVERSION_COEFF; in bfq_ioprio_to_weight()
742 bfqq->ioprio = in __bfq_entity_update_weight_prio()
/linux-6.1.9/include/linux/
Dioprio.h19 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
Diocontext.h103 unsigned short ioprio; member
Dblk-mq.h144 unsigned short ioprio; member
218 return req->ioprio; in req_get_ioprio()
960 rq->ioprio = bio_prio(bio); in blk_rq_bio_prep()
Dsecurity.h170 extern int cap_task_setioprio(struct task_struct *p, int ioprio);
428 int security_task_setioprio(struct task_struct *p, int ioprio);
1143 static inline int security_task_setioprio(struct task_struct *p, int ioprio) in security_task_setioprio() argument
1145 return cap_task_setioprio(p, ioprio); in security_task_setioprio()
/linux-6.1.9/io_uring/
Dopdef.c64 .ioprio = 1,
82 .ioprio = 1,
106 .ioprio = 1,
122 .ioprio = 1,
156 .ioprio = 1,
175 .ioprio = 1,
208 .ioprio = 1, /* used for flags */
282 .ioprio = 1,
298 .ioprio = 1,
324 .ioprio = 1,
[all …]
Dopdef.h25 unsigned ioprio : 1; member
Drw.c79 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()
Dnet.c254 sr->flags = READ_ONCE(sqe->ioprio); in io_sendmsg_prep()
553 sr->flags = READ_ONCE(sqe->ioprio); in io_recvmsg_prep()
950 zc->flags = READ_ONCE(sqe->ioprio); in io_send_zc_prep()
1257 flags = READ_ONCE(sqe->ioprio); in io_accept_prep()
/linux-6.1.9/Documentation/block/
Dioprio.rst90 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 …]
Dindex.rst18 ioprio
Dbfq-iosched.rst288 - 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-6.1.9/include/uapi/linux/
Dioprio.h12 #define IOPRIO_PRIO_CLASS(ioprio) \ argument
13 (((ioprio) >> IOPRIO_CLASS_SHIFT) & IOPRIO_CLASS_MASK)
14 #define IOPRIO_PRIO_DATA(ioprio) ((ioprio) & IOPRIO_PRIO_MASK) argument
Dvirtio_blk.h191 __virtio32 ioprio; member
Dio_uring.h25 __u16 ioprio; /* ioprio for the request */ member
/linux-6.1.9/drivers/block/rnbd/
Drnbd-srv-trace.h82 __field(u16, ioprio)
95 __entry->ioprio = le16_to_cpu(msg->prio);
110 __entry->ioprio,
/linux-6.1.9/include/trace/events/
Dio_uring.h511 __field( u8, ioprio )
532 __entry->ioprio = sqe->ioprio;
554 __entry->flags, __entry->ioprio,
/linux-6.1.9/tools/testing/selftests/net/
Dio_uring_zerocopy_tx.c288 sqe->ioprio = zc_flags; in io_uring_prep_sendzc()
407 sqe->ioprio |= IORING_RECVSEND_FIXED_BUF; in do_tx()
/linux-6.1.9/tools/io_uring/
Dio_uring-bench.c189 sqe->ioprio = 0; in init_io()

12