git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
fs
/
fcntl.c
diff --git
a/fs/fcntl.c
b/fs/fcntl.c
index
3d9a948
..
4cac5ba
100644
(file)
--- a/
fs/fcntl.c
+++ b/
fs/fcntl.c
@@
-497,16
+497,14
@@
void send_sigio(struct fown_struct *fown, int fd, int band)
read_lock(&tasklist_lock);
if (pid > 0) {
read_lock(&tasklist_lock);
if (pid > 0) {
- p = find_task_by_pid(pid);
+ p = find_task_by_
real_
pid(pid);
if (p) {
send_sigio_to_task(p, fown, fd, band);
}
} else {
if (p) {
send_sigio_to_task(p, fown, fd, band);
}
} else {
- struct list_head *l;
- struct pid *pidptr;
- for_each_task_pid(-pid, PIDTYPE_PGID, p, l, pidptr) {
+ do_each_task_pid(-pid, PIDTYPE_PGID, p) {
send_sigio_to_task(p, fown, fd, band);
send_sigio_to_task(p, fown, fd, band);
- }
+ }
while_each_task_pid(-pid, PIDTYPE_PGID, p);
}
read_unlock(&tasklist_lock);
out_unlock_fown:
}
read_unlock(&tasklist_lock);
out_unlock_fown:
@@
-534,16
+532,14
@@
int send_sigurg(struct fown_struct *fown)
read_lock(&tasklist_lock);
if (pid > 0) {
read_lock(&tasklist_lock);
if (pid > 0) {
- p = find_task_by_pid(pid);
+ p = find_task_by_
real_
pid(pid);
if (p) {
send_sigurg_to_task(p, fown);
}
} else {
if (p) {
send_sigurg_to_task(p, fown);
}
} else {
- struct list_head *l;
- struct pid *pidptr;
- for_each_task_pid(-pid, PIDTYPE_PGID, p, l, pidptr) {
+ do_each_task_pid(-pid, PIDTYPE_PGID, p) {
send_sigurg_to_task(p, fown);
send_sigurg_to_task(p, fown);
- }
+ }
while_each_task_pid(-pid, PIDTYPE_PGID, p);
}
read_unlock(&tasklist_lock);
out_unlock_fown:
}
read_unlock(&tasklist_lock);
out_unlock_fown: