Skip to content

Commit

Permalink
[PATCH] Clear task_struct->fs_excl on fork()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Giancarlo Formicuccia authored and Linus Torvalds committed Sep 9, 2005
1 parent 1299232 commit 4b5d37a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4b5d37a

Please sign in to comment.