Re: [2.6.13] task_struct->fs_excl, kernel_thread and jffs2

2005-09-08 Thread Jens Axboe
On Thu, Sep 08 2005, Giancarlo Formicuccia wrote: > Hi, > [please CC me in any reply] > I'm not sure that dup_task_struct() must copy the fs_excl field. This can > leads to > problems if do_fork() is somehow called while fs_excl!=0. > For example, the jffs2 code creates a kernel thread > (jffs2_g

[2.6.13] task_struct->fs_excl, kernel_thread and jffs2

2005-09-08 Thread Giancarlo Formicuccia
Hi, [please CC me in any reply] I'm not sure that dup_task_struct() must copy the fs_excl field. This can leads to problems if do_fork() is somehow called while fs_excl!=0. For example, the jffs2 code creates a kernel thread (jffs2_garbage_collect_thread) in a path where lock_super() is held (i.e