Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/block/
Dioprio.c36 int set_task_ioprio(struct task_struct *task, int ioprio) in set_task_ioprio() argument
51 err = security_task_setioprio(task, ioprio); in set_task_ioprio()
57 ioc->ioprio = ioprio; in set_task_ioprio()
65 int ioprio_check_cap(int ioprio) in ioprio_check_cap() argument
67 int class = IOPRIO_PRIO_CLASS(ioprio); in ioprio_check_cap()
68 int data = IOPRIO_PRIO_DATA(ioprio); in ioprio_check_cap()
101 SYSCALL_DEFINE3(ioprio_set, int, which, int, who, int, ioprio) in SYSCALL_DEFINE3() argument
109 ret = ioprio_check_cap(ioprio); in SYSCALL_DEFINE3()
122 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
130 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
[all …]
Dbfq-iosched.h237 unsigned short ioprio, ioprio_class; member
394 int ioprio; member
1035 unsigned short bfq_ioprio_to_weight(int ioprio);
Dbfq-iosched.c5017 ioprio_class = IOPRIO_PRIO_CLASS(bic->ioprio); in bfq_set_next_ioprio_data()
5032 bfqq->new_ioprio = IOPRIO_PRIO_DATA(bic->ioprio); in bfq_set_next_ioprio_data()
5036 bfqq->new_ioprio = IOPRIO_PRIO_DATA(bic->ioprio); in bfq_set_next_ioprio_data()
5063 int ioprio = bic->icq.ioc->ioprio; in bfq_check_ioprio_change() local
5069 if (unlikely(!bfqd) || likely(bic->ioprio == ioprio)) in bfq_check_ioprio_change()
5072 bic->ioprio = ioprio; in bfq_check_ioprio_change()
5148 int ioprio_class, int ioprio) in bfq_async_queue_prio() argument
5152 return &bfqg->async_bfqq[0][ioprio]; in bfq_async_queue_prio()
5154 ioprio = IOPRIO_NORM; in bfq_async_queue_prio()
5157 return &bfqg->async_bfqq[1][ioprio]; in bfq_async_queue_prio()
[all …]
DMakefile11 genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o
Dblk-merge.c751 if (req->ioprio != next->ioprio) in attempt_merge()
892 if (rq->ioprio != bio_prio(bio)) in blk_rq_merge_ok()
Dbfq-wf2q.c509 unsigned short bfq_ioprio_to_weight(int ioprio) in bfq_ioprio_to_weight() argument
511 return (IOPRIO_BE_NR - ioprio) * BFQ_WEIGHT_CONVERSION_COEFF; in bfq_ioprio_to_weight()
760 bfqq->ioprio = in __bfq_entity_update_weight_prio()
Dblk-core.c236 IOPRIO_PRIO_CLASS(req->ioprio)); in print_req_error()
1626 rq->ioprio = rq_src->ioprio; in blk_rq_prep_clone()
Dblk.h95 rq->ioprio = bio_prio(bio); in blk_rq_bio_prep()
Dbfq-cgroup.c431 bfqq->ioprio = bfqq->new_ioprio; in bfq_init_entity()
1439 bfqq->ioprio = bfqq->new_ioprio; in bfq_init_entity()
/kernel/linux/linux-5.10/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.rst19 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
563 linear mapping between ioprio and weights, described at the beginning
565 IOPRIO_BE_NR*10 are mapped to ioprio 0.
/kernel/linux/linux-5.10/include/linux/
Dioprio.h82 return ioc->ioprio; in get_current_ioprio()
91 extern int set_task_ioprio(struct task_struct *task, int ioprio);
94 extern int ioprio_check_cap(int ioprio);
96 static inline int ioprio_check_cap(int ioprio) in ioprio_check_cap() argument
Diocontext.h107 unsigned short ioprio; member
Dsecurity.h164 extern int cap_task_setioprio(struct task_struct *p, int ioprio);
410 int security_task_setioprio(struct task_struct *p, int ioprio);
1094 static inline int security_task_setioprio(struct task_struct *p, int ioprio) in security_task_setioprio() argument
1096 return cap_task_setioprio(p, ioprio); in security_task_setioprio()
Dblkdev.h235 unsigned short ioprio; member
289 return req->ioprio; in req_get_ioprio()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dvirtio_blk.h73 __virtio32 ioprio; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dvirtio_blk.h172 __virtio32 ioprio; member
Dio_uring.h20 __u16 ioprio; /* ioprio for the request */ member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dvirtio_blk.h81 __virtio32 ioprio; member
Dio_uring.h26 __u16 ioprio; member
/kernel/linux/build/test/syzkaller/qos_auth/
Dlatency_nice.txt46 include <linux/ioprio.h>
/kernel/linux/linux-5.10/io_uring/
Dio_uring.c2929 unsigned ioprio; in io_prep_rw() local
2951 ioprio = READ_ONCE(sqe->ioprio); in io_prep_rw()
2952 if (ioprio) { in io_prep_rw()
2953 ret = ioprio_check_cap(ioprio); in io_prep_rw()
2957 kiocb->ki_ioprio = ioprio; in io_prep_rw()
3810 if (sqe->ioprio || sqe->buf_index || sqe->splice_fd_in) in io_renameat_prep()
3861 if (sqe->ioprio || sqe->off || sqe->len || sqe->buf_index || in io_unlinkat_prep()
3908 if (unlikely(sqe->ioprio || sqe->off || sqe->addr || sqe->rw_flags || in io_shutdown_prep()
4060 if (unlikely(sqe->addr || sqe->ioprio || sqe->buf_index || in io_fsync_prep()
4094 if (sqe->ioprio || sqe->buf_index || sqe->rw_flags || in io_fallocate_prep()
[all …]
/kernel/linux/linux-5.10/tools/io_uring/
Dio_uring-bench.c189 sqe->ioprio = 0; in init_io()
/kernel/linux/linux-5.10/kernel/
Dfork.c1515 } else if (ioprio_valid(ioc->ioprio)) { in copy_io()
1520 new_ioc->ioprio = ioc->ioprio; in copy_io()

12