no need to play with fs->seq in exit_fs()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 15 Mar 2012 18:48:29 +0000 (14:48 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 21 Mar 2012 01:29:41 +0000 (21:29 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fs_struct.c

index 78b519c135365fb02d533441377ac4785abcb3ed..27114b413622234602a26e16cf637a6f073cbda5 100644 (file)
@@ -107,10 +107,8 @@ void exit_fs(struct task_struct *tsk)
                int kill;
                task_lock(tsk);
                spin_lock(&fs->lock);
-               write_seqcount_begin(&fs->seq);
                tsk->fs = NULL;
                kill = !--fs->users;
-               write_seqcount_end(&fs->seq);
                spin_unlock(&fs->lock);
                task_unlock(tsk);
                if (kill)