/linux/block/ |
A D | ioprio.c | 36 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() 108 ret = ioprio_check_cap(ioprio); in SYSCALL_DEFINE3() 121 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3() 131 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3() 156 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3() [all …]
|
A D | Makefile | 11 genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o \ 20 obj-$(CONFIG_BLK_CGROUP_IOPRIO) += blk-ioprio.o
|
A D | bfq-iosched.h | 242 unsigned short ioprio, ioprio_class; member 411 int ioprio; member 1055 unsigned short bfq_ioprio_to_weight(int ioprio);
|
A D | bfq-iosched.c | 5268 ioprio_class = IOPRIO_PRIO_CLASS(bic->ioprio); in bfq_set_next_ioprio_data() 5317 int ioprio = bic->icq.ioc->ioprio; in bfq_check_ioprio_change() local 5323 if (unlikely(!bfqd) || likely(bic->ioprio == ioprio)) in bfq_check_ioprio_change() 5326 bic->ioprio = ioprio; in bfq_check_ioprio_change() 5408 int ioprio_class, int ioprio) in bfq_async_queue_prio() argument 5412 return &bfqg->async_bfqq[0][ioprio]; in bfq_async_queue_prio() 5414 ioprio = IOPRIO_BE_NORM; in bfq_async_queue_prio() 5417 return &bfqg->async_bfqq[1][ioprio]; in bfq_async_queue_prio() 5532 bfqq->ioprio != last_bfqq_created->ioprio || in bfq_do_or_sched_stable_merge() 5576 const int ioprio = IOPRIO_PRIO_DATA(bic->ioprio); in bfq_get_queue() local [all …]
|
A D | .ioprio.o.cmd | 1 …ioprio.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/a… 3 source_block/ioprio.o := block/ioprio.c 5 deps_block/ioprio.o := \ 576 include/linux/ioprio.h \ 712 include/uapi/linux/ioprio.h \ 1245 block/ioprio.o: $(deps_block/ioprio.o) 1247 $(deps_block/ioprio.o):
|
A D | built-in.a | 25 ioprio.o/
|
A D | .built-in.a.cmd | 1 …k/blk-mq-cpumap.o block/blk-mq-sched.o block/ioctl.o block/genhd.o block/ioprio.o block/badblocks.…
|
A D | bfq-wf2q.c | 506 unsigned short bfq_ioprio_to_weight(int ioprio) in bfq_ioprio_to_weight() argument 508 return (IOPRIO_NR_LEVELS - ioprio) * BFQ_WEIGHT_CONVERSION_COEFF; in bfq_ioprio_to_weight() 757 bfqq->ioprio = in __bfq_entity_update_weight_prio()
|
A D | blk-merge.c | 793 if (req->ioprio != next->ioprio) in attempt_merge() 930 if (rq->ioprio != bio_prio(bio)) in blk_rq_merge_ok()
|
A D | blk-core.c | 234 IOPRIO_PRIO_CLASS(req->ioprio)); in blk_print_req_error() 1462 rq->ioprio = rq_src->ioprio; in blk_rq_prep_clone()
|
A D | mq-deadline.c | 715 u16 ioprio = req_get_ioprio(rq); in dd_insert_request() local 716 u8 ioprio_class = IOPRIO_PRIO_CLASS(ioprio); in dd_insert_request()
|
A D | bfq-cgroup.c | 431 bfqq->ioprio = bfqq->new_ioprio; in bfq_init_entity() 1414 bfqq->ioprio = bfqq->new_ioprio; in bfq_init_entity()
|
/linux/include/linux/ |
A 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() 58 return ioc->ioprio; in get_current_ioprio() 67 extern int set_task_ioprio(struct task_struct *task, int ioprio); 70 extern int ioprio_check_cap(int ioprio); 72 static inline int ioprio_check_cap(int ioprio) in ioprio_check_cap() argument
|
A D | iocontext.h | 107 unsigned short ioprio; member
|
A D | blk-mq.h | 140 unsigned short ioprio; member 213 return req->ioprio; in req_get_ioprio() 881 rq->ioprio = bio_prio(bio); in blk_rq_bio_prep()
|
A D | security.h | 166 extern int cap_task_setioprio(struct task_struct *p, int ioprio); 424 int security_task_setioprio(struct task_struct *p, int ioprio); 1137 static inline int security_task_setioprio(struct task_struct *p, int ioprio) in security_task_setioprio() argument 1139 return cap_task_setioprio(p, ioprio); in security_task_setioprio()
|
/linux/Documentation/block/ |
A 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 …]
|
A D | index.rst | 19 ioprio
|
A 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/include/uapi/linux/ |
A D | ioprio.h | 12 #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
|
A D | virtio_blk.h | 172 __virtio32 ioprio; member
|
A D | io_uring.h | 20 __u16 ioprio; /* ioprio for the request */ member
|
/linux/include/trace/events/ |
A D | io_uring.h | 518 __field( u8, ioprio ) 535 __entry->ioprio = sqe->ioprio; 552 __entry->opcode, __entry->flags, __entry->ioprio,
|
/linux/fs/ |
A D | io_uring.c | 2887 unsigned ioprio; in io_prep_rw() local 2929 ioprio = READ_ONCE(sqe->ioprio); in io_prep_rw() 2930 if (ioprio) { in io_prep_rw() 2931 ret = ioprio_check_cap(ioprio); in io_prep_rw() 2935 kiocb->ki_ioprio = ioprio; in io_prep_rw() 4175 if (sqe->ioprio || sqe->buf_index || sqe->rw_flags || in io_fallocate_prep() 4209 if (unlikely(sqe->ioprio || sqe->buf_index)) in __io_openat_prep() 4414 if (sqe->ioprio || sqe->rw_flags || sqe->splice_fd_in) in io_provide_buffers_prep() 5149 if (sqe->ioprio || sqe->len || sqe->buf_index) in io_accept_prep() 6173 if (sqe->ioprio || sqe->buf_index || sqe->len != 1 || in io_timeout_prep() [all …]
|
/linux/tools/io_uring/ |
A D | io_uring-bench.c | 189 sqe->ioprio = 0; in init_io()
|