提交 00c5746d 编写于 作者: A Alexey Dobriyan 提交者: Linus Torvalds

mutex_unlock() later in seq_lseek()

All manipulations with struct seq_file::version are done under
struct seq_file::lock except one introduced in commit
d6b7a781c51c91dd054e5c437885205592faac21
aka "[PATCH] Speed up /proc/pid/maps"
Signed-off-by: NAlexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 a6739af8
...@@ -260,8 +260,8 @@ loff_t seq_lseek(struct file *file, loff_t offset, int origin) ...@@ -260,8 +260,8 @@ loff_t seq_lseek(struct file *file, loff_t offset, int origin)
} }
} }
} }
mutex_unlock(&m->lock);
file->f_version = m->version; file->f_version = m->version;
mutex_unlock(&m->lock);
return retval; return retval;
} }
EXPORT_SYMBOL(seq_lseek); EXPORT_SYMBOL(seq_lseek);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册