aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ioprio.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ioprio.c')
-rw-r--r--fs/ioprio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ioprio.c b/fs/ioprio.c
index 0a615f87142e..d6ff77e8e7ec 100644
--- a/fs/ioprio.c
+++ b/fs/ioprio.c
@@ -94,8 +94,7 @@ asmlinkage long sys_ioprio_set(int which, int who, int ioprio)
94 if (!who) 94 if (!who)
95 p = current; 95 p = current;
96 else 96 else
97 p = find_task_by_pid_ns(who, 97 p = find_task_by_vpid(who);
98 current->nsproxy->pid_ns);
99 if (p) 98 if (p)
100 ret = set_task_ioprio(p, ioprio); 99 ret = set_task_ioprio(p, ioprio);
101 break; 100 break;
@@ -182,8 +181,7 @@ asmlinkage long sys_ioprio_get(int which, int who)
182 if (!who) 181 if (!who)
183 p = current; 182 p = current;
184 else 183 else
185 p = find_task_by_pid_ns(who, 184 p = find_task_by_vpid(who);
186 current->nsproxy->pid_ns);
187 if (p) 185 if (p)
188 ret = get_task_ioprio(p); 186 ret = get_task_ioprio(p);
189 break; 187 break;