tree 6072a602430af9a95d2bcadf149bd41c8045ef67
parent 1299232b5743da454c73853b90b3d2d83dce1737
author Giancarlo Formicuccia <[EMAIL PROTECTED]> Sat, 10 Sep 2005 03:01:22 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sat, 10 Sep 2005 03:56:43 -0700

[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 <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 kernel/fork.c |    1 +
 1 files changed, 1 insertion(+)

diff --git a/kernel/fork.c b/kernel/fork.c
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -176,6 +176,7 @@ static struct task_struct *dup_task_stru
        /* One for us, one for whoever does the "release_task()" (usually 
parent) */
+       atomic_set(&tsk->fs_excl, 0);
        return tsk;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to