Home
last modified time | relevance | path

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

/linux-2.6.39/fs/
Dioprio.c31 int set_task_ioprio(struct task_struct *task, int ioprio) in set_task_ioprio() argument
46 err = security_task_setioprio(task, ioprio); in set_task_ioprio()
67 ioc->ioprio = ioprio; in set_task_ioprio()
76 SYSCALL_DEFINE3(ioprio_set, int, which, int, who, int, ioprio) in SYSCALL_DEFINE3() argument
78 int class = IOPRIO_PRIO_CLASS(ioprio); in SYSCALL_DEFINE3()
79 int data = IOPRIO_PRIO_DATA(ioprio); in SYSCALL_DEFINE3()
114 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
122 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
139 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
164 ret = p->io_context->ioprio; in get_task_ioprio()
DMakefile17 obj-y += buffer.o bio.o block_dev.o direct-io.o mpage.o ioprio.o
/linux-2.6.39/include/linux/
Dioprio.h51 if (ioprio_valid(ioc->ioprio)) in task_ioprio()
52 return IOPRIO_PRIO_DATA(ioc->ioprio); in task_ioprio()
59 if (ioprio_valid(ioc->ioprio)) in task_ioprio_class()
60 return IOPRIO_PRIO_CLASS(ioc->ioprio); in task_ioprio_class()
89 extern int set_task_ioprio(struct task_struct *task, int ioprio);
Dvirtio_blk.h83 __u32 ioprio; member
Diocontext.h41 unsigned short ioprio; member
Dsecurity.h80 extern int cap_task_setioprio(struct task_struct *p, int ioprio);
1513 int (*task_setioprio) (struct task_struct *p, int ioprio);
1770 int security_task_setioprio(struct task_struct *p, int ioprio);
2333 static inline int security_task_setioprio(struct task_struct *p, int ioprio) in security_task_setioprio() argument
2335 return cap_task_setioprio(p, ioprio); in security_task_setioprio()
Dblkdev.h138 unsigned short ioprio; member
177 return req->ioprio; in req_get_ioprio()
Dsyscalls.h726 asmlinkage long sys_ioprio_set(int which, int who, int ioprio);
/linux-2.6.39/Documentation/block/
Dioprio.txt89 static inline int ioprio_set(int which, int who, int ioprio)
91 return syscall(__NR_ioprio_set, which, who, ioprio);
118 int ioprio = 4, set = 0, ioprio_class = IOPRIO_CLASS_BE;
124 ioprio = strtol(optarg, NULL, 10);
145 ioprio = 7;
156 ioprio = ioprio_get(IOPRIO_WHO_PROCESS, pid);
158 printf("pid=%d, %d\n", pid, ioprio);
160 if (ioprio == -1)
163 ioprio_class = ioprio >> IOPRIO_CLASS_SHIFT;
164 ioprio = ioprio & 0xff;
[all …]
D00-INDEX9 ioprio.txt
/linux-2.6.39/drivers/block/
Dvirtio_blk.c106 vbr->out_hdr.ioprio = req_get_ioprio(vbr->req); in do_req()
112 vbr->out_hdr.ioprio = req_get_ioprio(vbr->req); in do_req()
117 vbr->out_hdr.ioprio = req_get_ioprio(vbr->req); in do_req()
122 vbr->out_hdr.ioprio = req_get_ioprio(vbr->req); in do_req()
/linux-2.6.39/block/
Dblk-merge.c439 req->ioprio = ioprio_best(req->ioprio, next->ioprio); in attempt_merge()
Dcfq-iosched.c138 unsigned short ioprio, org_ioprio; member
523 return cfq_prio_slice(cfqd, cfq_cfqq_sync(cfqq), cfqq->ioprio); in cfq_prio_to_slice()
820 cfq_prio_slice(cfqd, cfq_cfqq_sync(cfqq), cfqq->ioprio)); in cfq_slice_offset()
2030 WARN_ON(cfqq->ioprio >= IOPRIO_BE_NR); in cfq_prio_to_maxrq()
2032 return 2 * (base_rq + base_rq * (CFQ_PRIO_LISTS - 1 - cfqq->ioprio)); in cfq_prio_to_maxrq()
2780 ioprio_class = IOPRIO_PRIO_CLASS(ioc->ioprio); in cfq_init_prio_data()
2788 cfqq->ioprio = task_nice_ioprio(tsk); in cfq_init_prio_data()
2792 cfqq->ioprio = task_ioprio(ioc); in cfq_init_prio_data()
2796 cfqq->ioprio = task_ioprio(ioc); in cfq_init_prio_data()
2801 cfqq->ioprio = 7; in cfq_init_prio_data()
[all …]
Dblk-ioc.c93 ret->ioprio = 0; in alloc_io_context()
Dblk-core.c1132 req->ioprio = ioprio_best(req->ioprio, bio_prio(bio)); in bio_attempt_back_merge()
1173 req->ioprio = ioprio_best(req->ioprio, bio_prio(bio)); in bio_attempt_front_merge()
1226 req->ioprio = bio_prio(bio); in init_request_from_bio()
2559 dst->ioprio = src->ioprio; in __blk_rq_prep_clone()
/linux-2.6.39/arch/powerpc/kernel/
Dsys_ppc32.c490 long compat_sys_ioprio_set(u32 which, u32 who, u32 ioprio) in compat_sys_ioprio_set() argument
493 return sys_ioprio_set((int)which, (int)who, (int)ioprio); in compat_sys_ioprio_set()
/linux-2.6.39/kernel/
Dfork.c839 } else if (ioprio_valid(ioc->ioprio)) { in copy_io()
844 tsk->io_context->ioprio = ioc->ioprio; in copy_io()
/linux-2.6.39/security/
Dcommoncap.c784 int cap_task_setioprio(struct task_struct *p, int ioprio) in cap_task_setioprio() argument
Dsecurity.c772 int security_task_setioprio(struct task_struct *p, int ioprio) in security_task_setioprio() argument
774 return security_ops->task_setioprio(p, ioprio); in security_task_setioprio()
/linux-2.6.39/drivers/message/fusion/
Dmptscsih.c1461 if (SCpnt->request && SCpnt->request->ioprio) { in mptscsih_qcmd()
1462 if (((SCpnt->request->ioprio & 0x7) == 1) || in mptscsih_qcmd()
1463 !(SCpnt->request->ioprio & 0x7)) in mptscsih_qcmd()
/linux-2.6.39/security/smack/
Dsmack_lsm.c1534 static int smack_task_setioprio(struct task_struct *p, int ioprio) in smack_task_setioprio() argument
1538 rc = cap_task_setioprio(p, ioprio); in smack_task_setioprio()
/linux-2.6.39/security/selinux/
Dhooks.c3373 static int selinux_task_setioprio(struct task_struct *p, int ioprio) in selinux_task_setioprio() argument
3377 rc = cap_task_setioprio(p, ioprio); in selinux_task_setioprio()
/linux-2.6.39/fs/ext4/
Dsuper.c4267 journal_ioprio = sbi->s_journal->j_task->io_context->ioprio; in ext4_remount()