提交 3ee05ed0 编写于 作者: A Al Viro

no need to play with fs->seq in exit_fs()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 68ac1234
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册