summaryrefslogtreecommitdiffstats
path: root/fs/seq_file.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@sw.ru>2007-07-16 08:40:22 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 18:05:44 +0200
commit00c5746da9fc6a793b9d94a8001ded5929f3a773 (patch)
tree3e8bf3568ef813a3dba10420aa31efaad8b2ad5d /fs/seq_file.c
parentext2: fix a comment when ext2_release_file() is called (diff)
downloadlinux-00c5746da9fc6a793b9d94a8001ded5929f3a773.tar.xz
linux-00c5746da9fc6a793b9d94a8001ded5929f3a773.zip
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 <adobriyan@sw.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/seq_file.c')
-rw-r--r--fs/seq_file.c2
1 files changed, 1 insertions, 1 deletions
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);