Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37567
b: refs/heads/master
c: cf342e5
h: refs/heads/master
i:
  37565: 5f5ffe4
  37563: 639e90f
  37559: 191802b
  37551: 9f03c4f
  37535: 9e8cbfd
  37503: 7ec9a82
v: v3
  • Loading branch information
Oleg Nesterov authored and Jens Axboe committed Sep 30, 2006
1 parent 5d5f079 commit b705c4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 25034d7a83cf77667f3d65822484b305d4be6b25
refs/heads/master: cf342e52e3117391868fb4bd900ce772a27a5a1a
13 changes: 9 additions & 4 deletions trunk/fs/ioprio.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ asmlinkage long sys_ioprio_set(int which, int who, int ioprio)
}

ret = -ESRCH;
read_lock_irq(&tasklist_lock);
/*
* We want IOPRIO_WHO_PGRP/IOPRIO_WHO_USER to be "atomic",
* so we can't use rcu_read_lock(). See re-copy of ->ioprio
* in copy_process().
*/
read_lock(&tasklist_lock);
switch (which) {
case IOPRIO_WHO_PROCESS:
if (!who)
Expand Down Expand Up @@ -124,7 +129,7 @@ asmlinkage long sys_ioprio_set(int which, int who, int ioprio)
ret = -EINVAL;
}

read_unlock_irq(&tasklist_lock);
read_unlock(&tasklist_lock);
return ret;
}

Expand Down Expand Up @@ -170,7 +175,7 @@ asmlinkage long sys_ioprio_get(int which, int who)
int ret = -ESRCH;
int tmpio;

read_lock_irq(&tasklist_lock);
read_lock(&tasklist_lock);
switch (which) {
case IOPRIO_WHO_PROCESS:
if (!who)
Expand Down Expand Up @@ -221,7 +226,7 @@ asmlinkage long sys_ioprio_get(int which, int who)
ret = -EINVAL;
}

read_unlock_irq(&tasklist_lock);
read_unlock(&tasklist_lock);
return ret;
}

0 comments on commit b705c4e

Please sign in to comment.