Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180727
b: refs/heads/master
c: 7011883
h: refs/heads/master
i:
  180725: 99c9ddb
  180723: d12b029
  180719: 3919540
v: v3
  • Loading branch information
Tetsuo Handa authored and Linus Torvalds committed Feb 23, 2010
1 parent 9c3c157 commit 7db80d7
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 5a2d41961dd6815b874b5c0afec0ac96cd90eea4
refs/heads/master: 701188374b6f1ef9cf7e4dce4a2e69ef4c0012ac
2 changes: 2 additions & 0 deletions trunk/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ SYSCALL_DEFINE2(getpriority, int, which, int, who)
if (which > PRIO_USER || which < PRIO_PROCESS)
return -EINVAL;

rcu_read_lock();
read_lock(&tasklist_lock);
switch (which) {
case PRIO_PROCESS:
Expand Down Expand Up @@ -267,6 +268,7 @@ SYSCALL_DEFINE2(getpriority, int, which, int, who)
}
out_unlock:
read_unlock(&tasklist_lock);
rcu_read_unlock();

return retval;
}
Expand Down

0 comments on commit 7db80d7

Please sign in to comment.