Skip to content

Commit 4b5d37a

Browse files
Giancarlo FormicucciaLinus Torvalds
authored andcommitted
[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>
1 parent 1299232 commit 4b5d37a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎kernel/fork.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ static struct task_struct *dup_task_struct(struct task_struct *orig)
176176

177177
/* One for us, one for whoever does the "release_task()" (usually parent) */
178178
atomic_set(&tsk->usage,2);
179+
atomic_set(&tsk->fs_excl, 0);
179180
return tsk;
180181
}
181182

0 commit comments

Comments
 (0)