diff options
author | Giancarlo Formicuccia <giancarlo.formicuccia@gmail.com> | 2005-09-09 13:01:22 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 13:56:43 -0700 |
commit | 4b5d37ac02954572e80e09255bb5737277aaee8e (patch) | |
tree | 6072a602430af9a95d2bcadf149bd41c8045ef67 /kernel | |
parent | 1299232b5743da454c73853b90b3d2d83dce1737 (diff) | |
download | linux-4b5d37ac02954572e80e09255bb5737277aaee8e.tar.gz linux-4b5d37ac02954572e80e09255bb5737277aaee8e.tar.bz2 linux-4b5d37ac02954572e80e09255bb5737277aaee8e.zip |
[PATCH] Clear task_struct->fs_excl on fork()
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/fork.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 7e1ead9a6ba4..dfeadf466f18 100644 --- 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; } |