Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221829
b: refs/heads/master
c: f85acd8
h: refs/heads/master
i:
  221827: e21366d
v: v3
  • Loading branch information
Sergey Senozhatsky authored and Jens Axboe committed Nov 10, 2010
1 parent 3acf12f commit 8fabe1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1447399b3e34af016c368b4178db7ef0e04e15b0
refs/heads/master: f85acd81aa623e3dcf268c90e5cd8ecf36830984
4 changes: 4 additions & 0 deletions trunk/fs/ioprio.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,14 @@ SYSCALL_DEFINE3(ioprio_set, int, which, int, who, int, ioprio)
read_lock(&tasklist_lock);
switch (which) {
case IOPRIO_WHO_PROCESS:
rcu_read_lock();
if (!who)
p = current;
else
p = find_task_by_vpid(who);
if (p)
ret = set_task_ioprio(p, ioprio);
rcu_read_unlock();
break;
case IOPRIO_WHO_PGRP:
if (!who)
Expand Down Expand Up @@ -205,12 +207,14 @@ SYSCALL_DEFINE2(ioprio_get, int, which, int, who)
read_lock(&tasklist_lock);
switch (which) {
case IOPRIO_WHO_PROCESS:
rcu_read_lock();
if (!who)
p = current;
else
p = find_task_by_vpid(who);
if (p)
ret = get_task_ioprio(p);
rcu_read_unlock();
break;
case IOPRIO_WHO_PGRP:
if (!who)
Expand Down

0 comments on commit 8fabe1f

Please sign in to comment.