Home
last modified time | relevance | path

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

12

/linux-6.12.1/include/uapi/linux/
Dioprio.h16 #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)
Dvirtio_blk.h223 __virtio32 ioprio; member
/linux-6.12.1/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()
68 prio = ioc->ioprio; in __get_task_ioprio()
86 extern int set_task_ioprio(struct task_struct *task, int ioprio);
89 extern int ioprio_check_cap(int ioprio);
91 static inline int ioprio_check_cap(int ioprio) in ioprio_check_cap() argument
Ddm-bufio.h68 struct dm_buffer **bp, unsigned short ioprio);
94 unsigned short ioprio);
Ddm-io.h84 unsigned short ioprio);
Diocontext.h103 unsigned short ioprio; member
Dblk-mq.h160 unsigned short ioprio; member
225 return req->ioprio; in req_get_ioprio()
992 rq->ioprio = bio_prio(bio); in blk_rq_bio_prep()
/linux-6.12.1/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 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()
171 ret = p->io_context->ioprio; in get_task_raw_ioprio()
Dblk-ioc.c246 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()
DMakefile11 genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o \
21 obj-$(CONFIG_BLK_CGROUP_IOPRIO) += blk-ioprio.o
Dbfq-iosched.h255 unsigned short ioprio, ioprio_class; member
492 int ioprio; member
1135 unsigned short bfq_ioprio_to_weight(int ioprio);
Dbfq-iosched.c5520 ioprio_class = IOPRIO_PRIO_CLASS(bic->ioprio); in bfq_set_next_ioprio_data()
5535 bfqq->new_ioprio = IOPRIO_PRIO_LEVEL(bic->ioprio); in bfq_set_next_ioprio_data()
5539 bfqq->new_ioprio = IOPRIO_PRIO_LEVEL(bic->ioprio); in bfq_set_next_ioprio_data()
5569 int ioprio = bic->icq.ioc->ioprio; in bfq_check_ioprio_change() local
5575 if (unlikely(!bfqd) || likely(bic->ioprio == ioprio)) in bfq_check_ioprio_change()
5578 bic->ioprio = ioprio; in bfq_check_ioprio_change()
5666 int ioprio_class, int ioprio, int act_idx) in bfq_async_queue_prio() argument
5670 return &bfqg->async_bfqq[0][ioprio][act_idx]; in bfq_async_queue_prio()
5672 ioprio = IOPRIO_BE_NORM; in bfq_async_queue_prio()
5675 return &bfqg->async_bfqq[1][ioprio][act_idx]; in bfq_async_queue_prio()
[all …]
Dbfq-wf2q.c505 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()
Dblk-merge.c852 if (req->ioprio != next->ioprio) in attempt_merge()
986 if (rq->ioprio != bio_prio(bio)) in blk_rq_merge_ok()
/linux-6.12.1/include/trace/events/
Dblock.h93 __field( unsigned short, ioprio )
102 __entry->ioprio = rq->ioprio;
112 __print_symbolic(IOPRIO_PRIO_CLASS(__entry->ioprio),
114 IOPRIO_PRIO_HINT(__entry->ioprio),
115 IOPRIO_PRIO_LEVEL(__entry->ioprio), 0)
129 __field( unsigned short, ioprio )
139 __entry->ioprio = rq->ioprio;
149 __print_symbolic(IOPRIO_PRIO_CLASS(__entry->ioprio),
151 IOPRIO_PRIO_HINT(__entry->ioprio),
152 IOPRIO_PRIO_LEVEL(__entry->ioprio), __entry->error)
[all …]
Dio_uring.h508 __field( u8, ioprio )
529 __entry->ioprio = sqe->ioprio;
551 __entry->flags, __entry->ioprio,
/linux-6.12.1/Documentation/block/
Dioprio.rst86 static inline int ioprio_set(int which, int who, int ioprio)
88 return syscall(__NR_ioprio_set, which, who, ioprio);
115 int ioprio = 4, set = 0, ioprio_class = IOPRIO_CLASS_BE;
121 ioprio = strtol(optarg, NULL, 10);
142 ioprio = 7;
153 ioprio = ioprio_get(IOPRIO_WHO_PROCESS, pid);
155 printf("pid=%d, %d\n", pid, ioprio);
157 if (ioprio == -1)
160 ioprio_class = ioprio >> IOPRIO_CLASS_SHIFT;
161 ioprio = ioprio & 0xff;
[all …]
Dindex.rst17 ioprio
/linux-6.12.1/io_uring/
Dopdef.c66 .ioprio = 1,
81 .ioprio = 1,
101 .ioprio = 1,
115 .ioprio = 1,
144 .ioprio = 1,
158 .ioprio = 1,
184 .ioprio = 1, /* used for flags */
246 .ioprio = 1,
260 .ioprio = 1,
283 .ioprio = 1,
[all …]
Dopdef.h23 unsigned ioprio : 1; member
Drw.c264 unsigned ioprio; in io_prep_rw() local
271 ioprio = READ_ONCE(sqe->ioprio); in io_prep_rw()
272 if (ioprio) { in io_prep_rw()
273 ret = ioprio_check_cap(ioprio); in io_prep_rw()
277 rw->kiocb.ki_ioprio = ioprio; in io_prep_rw()
/linux-6.12.1/drivers/md/
Ddm-io.c308 struct io *io, unsigned short ioprio) in do_region() argument
357 bio->bi_ioprio = ioprio; in do_region()
387 struct io *io, unsigned short ioprio) in dispatch_io() argument
401 do_region(opf, i, where + i, dp, io, ioprio); in dispatch_io()
414 unsigned short ioprio) in async_io() argument
428 dispatch_io(opf, num_regions, where, dp, io, ioprio); in async_io()
446 unsigned long *error_bits, unsigned short ioprio) in sync_io() argument
453 sync_io_complete, &sio, ioprio); in sync_io()
502 unsigned short ioprio) in dm_io() argument
518 io_req->bi_opf, &dp, sync_error_bits, ioprio); in dm_io()
[all …]
Ddm-bufio.c1293 unsigned short ioprio) in use_dmio() argument
1316 r = dm_io(&io_req, 1, &region, NULL, ioprio); in use_dmio()
1333 unsigned short ioprio) in use_bio() argument
1341 use_dmio(b, op, sector, n_sectors, offset, ioprio); in use_bio()
1348 bio->bi_ioprio = ioprio; in use_bio()
1371 static void submit_io(struct dm_buffer *b, enum req_op op, unsigned short ioprio, in submit_io() argument
1401 use_bio(b, op, sector, n_sectors, offset, ioprio); in submit_io()
1403 use_dmio(b, op, sector, n_sectors, offset, ioprio); in submit_io()
1856 unsigned short ioprio) in new_read() argument
1909 submit_io(b, REQ_OP_READ, ioprio, read_endio); in new_read()
[all …]
Ddm-verity-target.c60 unsigned short ioprio; member
713 pw->ioprio); in verity_prefetch_io()
720 unsigned short ioprio) in verity_submit_prefetch() argument
748 pw->ioprio = ioprio; in verity_submit_prefetch()
/linux-6.12.1/drivers/block/rnbd/
Drnbd-srv-trace.h82 __field(u16, ioprio)
95 __entry->ioprio = le16_to_cpu(msg->prio);
110 __entry->ioprio,

12