Searched refs:ioprio (Results 1 - 25 of 49) sorted by relevance

12

/linux-master/include/uapi/linux/
H A Dioprio.h16 #define IOPRIO_PRIO_CLASS(ioprio) \
17 (((ioprio) >> IOPRIO_CLASS_SHIFT) & IOPRIO_CLASS_MASK)
18 #define IOPRIO_PRIO_DATA(ioprio) ((ioprio) & IOPRIO_PRIO_MASK)
34 /* Special class to indicate an invalid ioprio value */
45 #define IOPRIO_PRIO_LEVEL(ioprio) ((ioprio) & IOPRIO_LEVEL_MASK)
77 #define IOPRIO_PRIO_HINT(ioprio) \
78 (((ioprio) >> IOPRIO_HINT_SHIFT) & IOPRIO_HINT_MASK)
H A Dvirtio_blk.h223 __virtio32 ioprio; member in struct:virtio_blk_outhdr
H A Dio_uring.h33 __u16 ioprio; /* ioprio for the request */ member in struct:io_uring_sqe
333 * send/sendmsg and recv/recvmsg flags (sqe->ioprio)
370 * accept flags stored in sqe->ioprio
/linux-master/include/linux/
H A Dioprio.h9 #include <uapi/linux/ioprio.h>
19 static inline bool ioprio_valid(unsigned short ioprio) argument
21 unsigned short class = IOPRIO_PRIO_CLASS(ioprio);
68 prio = ioc->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) argument
H A Diocontext.h103 unsigned short ioprio; member in struct:io_context
H A Ddm-io.h84 unsigned short ioprio);
H A Ddm-bufio.h68 struct dm_buffer **bp, unsigned short ioprio);
94 unsigned short ioprio);
H A Dblk-mq.h140 unsigned short ioprio; member in struct:request
205 return req->ioprio;
966 rq->ioprio = bio_prio(bio);
/linux-master/block/
H A Dioprio.c3 * fs/ioprio.c
20 * See also Documentation/block/ioprio.rst
25 #include <linux/ioprio.h>
33 int ioprio_check_cap(int ioprio) argument
35 int class = IOPRIO_PRIO_CLASS(ioprio);
36 int level = IOPRIO_PRIO_LEVEL(ioprio);
69 SYSCALL_DEFINE3(ioprio_set, int, which, int, who, int, ioprio)
77 ret = ioprio_check_cap(ioprio);
90 ret = set_task_ioprio(p, ioprio);
100 ret = set_task_ioprio(p, ioprio);
[all...]
H A Dblk-ioc.c246 ioc->ioprio = IOPRIO_DEFAULT;
251 int set_task_ioprio(struct task_struct *task, int ioprio) argument
265 err = security_task_setioprio(task, ioprio);
289 task->io_context->ioprio = ioprio;
306 } else if (ioprio_valid(ioc->ioprio)) {
310 tsk->io_context->ioprio = ioc->ioprio;
H A DMakefile11 genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o \
21 obj-$(CONFIG_BLK_CGROUP_IOPRIO) += blk-ioprio.o
H A Dbfq-iosched.h143 * ioprio to export the same interface as CFQ. When dealing with
204 /* flag, set to request a weight, ioprio or ioprio_class change */
254 /* current ioprio and ioprio class */
255 unsigned short ioprio, ioprio_class; member in struct:bfq_queue
256 /* next ioprio and ioprio class if a change is in progress */
491 /* per (request_queue, blkcg) ioprio */
492 int ioprio; member in struct:bfq_io_cq
977 * the group, one queue per ioprio valu
[all...]
H A Dbfq-iosched.c122 #include <linux/ioprio.h>
5091 * might have a pending change of its ioprio class, invoke
5516 ioprio_class = IOPRIO_PRIO_CLASS(bic->ioprio);
5531 bfqq->new_ioprio = IOPRIO_PRIO_LEVEL(bic->ioprio);
5535 bfqq->new_ioprio = IOPRIO_PRIO_LEVEL(bic->ioprio);
5565 int ioprio = bic->icq.ioc->ioprio; local
5571 if (unlikely(!bfqd) || likely(bic->ioprio == ioprio))
5574 bic->ioprio
5660 bfq_async_queue_prio(struct bfq_data *bfqd, struct bfq_group *bfqg, int ioprio_class, int ioprio, int act_idx) argument
5837 const int ioprio = IOPRIO_PRIO_LEVEL(bic->ioprio); local
[all...]
H A Dbfq-wf2q.c502 * bfq_ioprio_to_weight - calc a weight from an ioprio.
503 * @ioprio: the ioprio value to convert.
505 unsigned short bfq_ioprio_to_weight(int ioprio) argument
507 return (IOPRIO_NR_LEVELS - ioprio) * BFQ_WEIGHT_CONVERSION_COEFF;
511 * bfq_weight_to_ioprio - calc an ioprio from a weight.
514 * To preserve as much as possible the old only-ioprio user interface,
515 * 0 is used as an escape ioprio value for weights (numerically) equal or
687 * last parameter is as follows. Changing the ioprio class of an
727 bfqq->ioprio
[all...]
/linux-master/io_uring/
H A Dopdef.h24 /* supports ioprio */
25 unsigned ioprio : 1; member in struct:io_issue_def
H A Dopdef.c66 .ioprio = 1,
80 .ioprio = 1,
99 .ioprio = 1,
112 .ioprio = 1,
140 .ioprio = 1,
154 .ioprio = 1,
179 .ioprio = 1, /* used for flags */
239 .ioprio = 1,
252 .ioprio = 1,
274 .ioprio
[all...]
H A Drw.c81 unsigned ioprio; local
88 ioprio = READ_ONCE(sqe->ioprio);
89 if (ioprio) {
90 ret = ioprio_check_cap(ioprio);
94 rw->kiocb.ki_ioprio = ioprio;
/linux-master/drivers/md/
H A Ddm-io.c308 struct io *io, unsigned short ioprio)
357 bio->bi_ioprio = ioprio;
387 struct io *io, int sync, unsigned short ioprio)
404 do_region(opf, i, where + i, dp, io, ioprio);
429 unsigned long *error_bits, unsigned short ioprio)
451 dispatch_io(opf, num_regions, where, dp, io, 1, ioprio);
464 unsigned short ioprio)
484 dispatch_io(opf, num_regions, where, dp, io, 0, ioprio);
527 unsigned short ioprio)
538 io_req->bi_opf, &dp, sync_error_bits, ioprio);
306 do_region(const blk_opf_t opf, unsigned int region, struct dm_io_region *where, struct dpages *dp, struct io *io, unsigned short ioprio) argument
385 dispatch_io(blk_opf_t opf, unsigned int num_regions, struct dm_io_region *where, struct dpages *dp, struct io *io, int sync, unsigned short ioprio) argument
427 sync_io(struct dm_io_client *client, unsigned int num_regions, struct dm_io_region *where, blk_opf_t opf, struct dpages *dp, unsigned long *error_bits, unsigned short ioprio) argument
461 async_io(struct dm_io_client *client, unsigned int num_regions, struct dm_io_region *where, blk_opf_t opf, struct dpages *dp, io_notify_fn fn, void *context, unsigned short ioprio) argument
525 dm_io(struct dm_io_request *io_req, unsigned int num_regions, struct dm_io_region *where, unsigned long *sync_error_bits, unsigned short ioprio) argument
[all...]
H A Ddm-bufio.c1296 unsigned short ioprio)
1319 r = dm_io(&io_req, 1, &region, NULL, ioprio);
1336 unsigned short ioprio)
1344 use_dmio(b, op, sector, n_sectors, offset, ioprio);
1351 bio->bi_ioprio = ioprio;
1374 static void submit_io(struct dm_buffer *b, enum req_op op, unsigned short ioprio, argument
1404 use_bio(b, op, sector, n_sectors, offset, ioprio);
1406 use_dmio(b, op, sector, n_sectors, offset, ioprio);
1859 unsigned short ioprio)
1912 submit_io(b, REQ_OP_READ, ioprio, read_endi
1294 use_dmio(struct dm_buffer *b, enum req_op op, sector_t sector, unsigned int n_sectors, unsigned int offset, unsigned short ioprio) argument
1334 use_bio(struct dm_buffer *b, enum req_op op, sector_t sector, unsigned int n_sectors, unsigned int offset, unsigned short ioprio) argument
1857 new_read(struct dm_bufio_client *c, sector_t block, enum new_flag nf, struct dm_buffer **bp, unsigned short ioprio) argument
1937 __dm_bufio_read(struct dm_bufio_client *c, sector_t block, struct dm_buffer **bp, unsigned short ioprio) argument
1953 dm_bufio_read_with_ioprio(struct dm_bufio_client *c, sector_t block, struct dm_buffer **bp, unsigned short ioprio) argument
1970 __dm_bufio_prefetch(struct dm_bufio_client *c, sector_t block, unsigned int n_blocks, unsigned short ioprio) argument
2030 dm_bufio_prefetch_with_ioprio(struct dm_bufio_client *c, sector_t block, unsigned int n_blocks, unsigned short ioprio) argument
[all...]
H A Ddm-verity-target.c54 unsigned short ioprio; member in struct:dm_verity_prefetch_work
781 pw->ioprio);
788 unsigned short ioprio)
816 pw->ioprio = ioprio;
787 verity_submit_prefetch(struct dm_verity *v, struct dm_verity_io *io, unsigned short ioprio) argument
/linux-master/drivers/block/rnbd/
H A Drnbd-srv-trace.h82 __field(u16, ioprio)
95 __entry->ioprio = le16_to_cpu(msg->prio);
100 TP_printk("I/O req: sess: %s, type: %s, ver: %d, devid: %u, sector: %llu, bsize: %u, flags: %s, ioprio: %d, datalen: %u, usrlen: %zu",
110 __entry->ioprio,
/linux-master/include/trace/events/
H A Dio_uring.h508 __field( u8, ioprio )
529 __entry->ioprio = sqe->ioprio;
551 __entry->flags, __entry->ioprio,
/linux-master/tools/testing/selftests/net/
H A Dio_uring_zerocopy_tx.c143 sqe->ioprio |= IORING_RECVSEND_FIXED_BUF;
/linux-master/tools/include/io_uring/
H A Dmini_liburing.h275 sqe->ioprio = zc_flags;
/linux-master/tools/include/uapi/linux/
H A Dio_uring.h33 __u16 ioprio; /* ioprio for the request */ member in struct:io_uring_sqe
330 * send/sendmsg and recv/recvmsg flags (sqe->ioprio)
367 * accept flags stored in sqe->ioprio

Completed in 245 milliseconds

12