projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1299232
)
[PATCH] Clear task_struct->fs_excl on fork()
author
Giancarlo Formicuccia
<giancarlo.formicuccia@gmail.com>
Fri, 9 Sep 2005 20:01:22 +0000
(13:01 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 9 Sep 2005 20:56:43 +0000
(13:56 -0700)
An oversight. We don't want to carry the IO scheduler's "we hold exclusive fs
resources" hint over to the child across fork().
Acked-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/fork.c
patch
|
blob
|
history
diff --git
a/kernel/fork.c
b/kernel/fork.c
index
7e1ead9
..
dfeadf4
100644
(file)
--- a/
kernel/fork.c
+++ b/
kernel/fork.c
@@
-176,6
+176,7
@@
static struct task_struct *dup_task_struct(struct task_struct *orig)
/* One for us, one for whoever does the "release_task()" (usually parent) */
atomic_set(&tsk->usage,2);
+ atomic_set(&tsk->fs_excl, 0);
return tsk;
}