Home
last modified time | relevance | path

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

12

/linux/include/uapi/linux/
H A 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)
H A Dvirtio_blk.h223 __virtio32 ioprio; member
H A Dio_uring.h35 __u16 ioprio; /* ioprio for the request */ member
/linux/include/linux/
H A 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()
69 prio = ioc->ioprio; in __get_task_ioprio()
87 extern int set_task_ioprio(struct task_struct *task, int ioprio);
90 extern int ioprio_check_cap(int ioprio);
92 static inline int ioprio_check_cap(int ioprio) in ioprio_check_cap() argument
H A Ddm-bufio.h68 struct dm_buffer **bp, unsigned short ioprio);
94 unsigned short ioprio);
H A Diocontext.h103 unsigned short ioprio; member
/linux/block/
H A 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()
65 SYSCALL_DEFINE3(ioprio_set, int, which, int, who, int, ioprio) in SYSCALL_DEFINE3() argument
73 ret = ioprio_check_cap(ioprio); in SYSCALL_DEFINE3()
86 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
96 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
121 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
167 ret = p->io_context->ioprio; in get_task_raw_ioprio()
H A Dblk-ioc.c239 ioc->ioprio = IOPRIO_DEFAULT; in alloc_io_context()
244 int set_task_ioprio(struct task_struct *task, int ioprio) in set_task_ioprio() argument
258 err = security_task_setioprio(task, ioprio); in set_task_ioprio()
282 task->io_context->ioprio = ioprio; in set_task_ioprio()
299 } else if (ioprio_valid(ioc->ioprio)) { in __copy_io()
303 tsk->io_context->ioprio = ioc->ioprio; in __copy_io()
H A Dbfq-iosched.h255 unsigned short ioprio, ioprio_class; member
492 int ioprio; member
1134 unsigned short bfq_ioprio_to_weight(int ioprio);
H A Dbfq-iosched.c5516 ioprio_class = IOPRIO_PRIO_CLASS(bic->ioprio); in bfq_set_next_ioprio_data()
5531 bfqq->new_ioprio = IOPRIO_PRIO_LEVEL(bic->ioprio); in bfq_set_next_ioprio_data()
5535 bfqq->new_ioprio = IOPRIO_PRIO_LEVEL(bic->ioprio); in bfq_set_next_ioprio_data()
5565 int ioprio = bic->icq.ioc->ioprio; in bfq_check_ioprio_change() local
5571 if (unlikely(!bfqd) || likely(bic->ioprio == ioprio)) in bfq_check_ioprio_change()
5574 bic->ioprio = ioprio; in bfq_check_ioprio_change()
5662 int ioprio_class, int ioprio, int act_idx) in bfq_async_queue_prio() argument
5666 return &bfqg->async_bfqq[0][ioprio][act_idx]; in bfq_async_queue_prio()
5668 ioprio = IOPRIO_BE_NORM; in bfq_async_queue_prio()
5671 return &bfqg->async_bfqq[1][ioprio][act_idx]; in bfq_async_queue_prio()
[all …]
H A 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()
/linux/Documentation/block/
H A 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 …]
H A 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/io_uring/
H A Dopdef.c68 .ioprio = 1,
82 .ioprio = 1,
101 .ioprio = 1,
114 .ioprio = 1,
142 .ioprio = 1,
156 .ioprio = 1,
182 .ioprio = 1, /* used for flags */
249 .ioprio = 1,
262 .ioprio = 1,
284 .ioprio = 1,
[all …]
H A Dmock_file.c79 if (unlikely(sqe->ioprio || sqe->__pad1)) in io_cmd_copy_regbuf()
228 if (sqe->ioprio || sqe->__pad1 || sqe->addr3 || sqe->file_index) in io_create_mock_file()
287 if (sqe->ioprio || sqe->__pad1 || sqe->addr3 || sqe->file_index || in io_probe_mock()
H A Drw.c250 unsigned ioprio; in __io_prep_rw() local
263 ioprio = READ_ONCE(sqe->ioprio); in __io_prep_rw()
264 if (ioprio) { in __io_prep_rw()
265 ret = ioprio_check_cap(ioprio); in __io_prep_rw()
269 rw->kiocb.ki_ioprio = ioprio; in __io_prep_rw()
H A Dcmd_net.c160 if (sqe->ioprio || sqe->__pad1 || sqe->len || sqe->rw_flags) in io_uring_cmd_getsockname()
H A Dnet.c401 sr->flags = READ_ONCE(sqe->ioprio); in io_sendmsg_prep()
794 sr->flags = READ_ONCE(sqe->ioprio); in io_recvmsg_prep()
1281 zc->flags = READ_ONCE(sqe->ioprio); in io_recvzc_prep()
1376 zc->flags = READ_ONCE(sqe->ioprio); in io_send_zc_prep()
1597 accept->iou_flags = READ_ONCE(sqe->ioprio); in io_accept_prep()
/linux/drivers/md/
H A Ddm-bufio.c1299 unsigned short ioprio) in use_dmio() argument
1322 r = dm_io(&io_req, 1, &region, NULL, NULL, ioprio); in use_dmio()
1339 unsigned short ioprio) in use_bio() argument
1347 use_dmio(b, op, sector, n_sectors, offset, ioprio); in use_bio()
1354 bio->bi_ioprio = ioprio; in use_bio()
1377 static void submit_io(struct dm_buffer *b, enum req_op op, unsigned short ioprio, in submit_io() argument
1409 use_bio(b, op, sector, n_sectors, offset, ioprio); in submit_io()
1411 use_dmio(b, op, sector, n_sectors, offset, ioprio); in submit_io()
1873 unsigned short ioprio) in new_read() argument
1928 submit_io(b, REQ_OP_READ, ioprio, read_endio); in new_read()
[all …]
H A Ddm-verity-target.c67 unsigned short ioprio; member
670 static inline bool verity_use_bh(unsigned int bytes, unsigned short ioprio) in verity_use_bh() argument
672 return ioprio <= IOPRIO_CLASS_IDLE && in verity_use_bh()
673 bytes <= READ_ONCE(dm_verity_use_bh_bytes[ioprio]) && in verity_use_bh()
680 unsigned short ioprio = IOPRIO_PRIO_CLASS(bio->bi_ioprio); in verity_end_io() local
692 verity_use_bh(bytes, ioprio)) { in verity_end_io()
742 pw->ioprio); in verity_prefetch_io()
749 unsigned short ioprio) in verity_submit_prefetch() argument
777 pw->ioprio = ioprio; in verity_submit_prefetch()
/linux/Documentation/translations/zh_CN/block/
H A Dindex.rst28 * ioprio
/linux/include/trace/events/
H A Dio_uring.h502 __field( u8, ioprio )
523 __entry->ioprio = sqe->ioprio;
545 __entry->flags, __entry->ioprio,
/linux/tools/testing/selftests/net/
H A Dio_uring_zerocopy_tx.c143 sqe->ioprio |= IORING_RECVSEND_FIXED_BUF; in do_tx()
/linux/tools/include/uapi/linux/
H A Dio_uring.h33 __u16 ioprio; /* ioprio for the request */ member
/linux/tools/include/io_uring/
H A Dmini_liburing.h304 sqe->ioprio = zc_flags; in io_uring_prep_sendzc()

12