| /OK3568_Linux_fs/kernel/block/ |
| H 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() 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 …]
|
| H A D | Makefile | 11 genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o 20 obj-$(CONFIG_BLK_CGROUP_IOPRIO) += blk-ioprio.o
|
| H A D | bfq-iosched.h | 237 unsigned short ioprio, ioprio_class; member 394 int ioprio; member 1035 unsigned short bfq_ioprio_to_weight(int ioprio);
|
| H A D | bfq-iosched.c | 5006 ioprio_class = IOPRIO_PRIO_CLASS(bic->ioprio); in bfq_set_next_ioprio_data() 5021 bfqq->new_ioprio = IOPRIO_PRIO_DATA(bic->ioprio); in bfq_set_next_ioprio_data() 5025 bfqq->new_ioprio = IOPRIO_PRIO_DATA(bic->ioprio); in bfq_set_next_ioprio_data() 5052 int ioprio = bic->icq.ioc->ioprio; in bfq_check_ioprio_change() local 5058 if (unlikely(!bfqd) || likely(bic->ioprio == ioprio)) in bfq_check_ioprio_change() 5061 bic->ioprio = ioprio; in bfq_check_ioprio_change() 5137 int ioprio_class, int ioprio) in bfq_async_queue_prio() argument 5141 return &bfqg->async_bfqq[0][ioprio]; in bfq_async_queue_prio() 5143 ioprio = IOPRIO_NORM; in bfq_async_queue_prio() 5146 return &bfqg->async_bfqq[1][ioprio]; in bfq_async_queue_prio() [all …]
|
| H A D | blk-merge.c | 753 if (req->ioprio != next->ioprio) in attempt_merge() 897 if (rq->ioprio != bio_prio(bio)) in blk_rq_merge_ok()
|
| H A D | bfq-wf2q.c | 509 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()
|
| H A D | blk-core.c | 242 IOPRIO_PRIO_CLASS(req->ioprio)); in print_req_error() 1641 rq->ioprio = rq_src->ioprio; in blk_rq_prep_clone()
|
| H A D | blk.h | 96 rq->ioprio = bio_prio(bio); in blk_rq_bio_prep()
|
| H A D | mq-deadline-main.c | 717 u16 ioprio = req_get_ioprio(rq); in dd_insert_request() local 718 u8 ioprio_class = IOPRIO_PRIO_CLASS(ioprio); in dd_insert_request()
|
| H A D | bfq-cgroup.c | 431 bfqq->ioprio = bfqq->new_ioprio; in bfq_init_entity() 1437 bfqq->ioprio = bfqq->new_ioprio; in bfq_init_entity()
|
| /OK3568_Linux_fs/kernel/Documentation/block/ |
| H 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 …]
|
| H A D | index.rst | 19 ioprio
|
| H 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 563 linear mapping between ioprio and weights, described at the beginning 565 IOPRIO_BE_NR*10 are mapped to ioprio 0.
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | ioprio.h | 82 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
|
| H A D | iocontext.h | 107 unsigned short ioprio; member
|
| H A D | security.h | 162 extern int cap_task_setioprio(struct task_struct *p, int ioprio); 411 int security_task_setioprio(struct task_struct *p, int ioprio); 1102 static inline int security_task_setioprio(struct task_struct *p, int ioprio) in security_task_setioprio() argument 1104 return cap_task_setioprio(p, ioprio); in security_task_setioprio()
|
| H A D | blkdev.h | 237 unsigned short ioprio; member 293 return req->ioprio; in req_get_ioprio()
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/ |
| H A D | virtio_blk.h | 129 __virtio32 ioprio; member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/ |
| H A D | virtio_blk.h | 129 __virtio32 ioprio; member
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/ |
| H A D | virtio_blk.h | 172 __virtio32 ioprio; member
|
| H A D | io_uring.h | 20 __u16 ioprio; /* ioprio for the request */ member
|
| /OK3568_Linux_fs/kernel/io_uring/ |
| H A D | io_uring.c | 2907 unsigned ioprio; in io_prep_rw() local 2937 ioprio = READ_ONCE(sqe->ioprio); in io_prep_rw() 2938 if (ioprio) { in io_prep_rw() 2939 ret = ioprio_check_cap(ioprio); in io_prep_rw() 2943 kiocb->ki_ioprio = ioprio; in io_prep_rw() 3760 if (sqe->ioprio || sqe->buf_index || sqe->splice_fd_in) in io_renameat_prep() 3811 if (sqe->ioprio || sqe->off || sqe->len || sqe->buf_index || in io_unlinkat_prep() 3858 if (unlikely(sqe->ioprio || sqe->off || sqe->addr || sqe->rw_flags || in io_shutdown_prep() 4010 if (unlikely(sqe->addr || sqe->ioprio || sqe->buf_index || in io_fsync_prep() 4044 if (sqe->ioprio || sqe->buf_index || sqe->rw_flags || in io_fallocate_prep() [all …]
|
| /OK3568_Linux_fs/kernel/tools/io_uring/ |
| H A D | io_uring-bench.c | 189 sqe->ioprio = 0; in init_io()
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/ |
| H A D | utils.py | 1597 ioprio = value | (cls << IOPRIO_CLASS_SHIFT) 1598 rc = cdll['libc.so.6'].syscall(NR_ioprio_set, IOPRIO_WHO_PROCESS, who, ioprio)
|
| /OK3568_Linux_fs/kernel/kernel/ |
| H A D | fork.c | 1545 } else if (ioprio_valid(ioc->ioprio)) { in copy_io() 1550 new_ioc->ioprio = ioc->ioprio; in copy_io()
|