From: Alexey Dobriyan Date: Mon, 16 Jul 2007 06:40:22 +0000 (-0700) Subject: mutex_unlock() later in seq_lseek() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=00c5746da9fc6a793b9d94a8001ded5929f3a773;p=linux-beck.git 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: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/seq_file.c b/fs/seq_file.c index 49194a4e6b91..e8e51db4989d 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c @@ -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; + mutex_unlock(&m->lock); return retval; } EXPORT_SYMBOL(seq_lseek);