aboutsummaryrefslogtreecommitdiffstats
path: root/fs/seq_file.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@sw.ru>2007-07-16 02:40:22 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 12:05:44 -0400
commit00c5746da9fc6a793b9d94a8001ded5929f3a773 (patch)
tree3e8bf3568ef813a3dba10420aa31efaad8b2ad5d /fs/seq_file.c
parenta6739af8b9e8bf0fd1fb3f4f8406a9f650cb733a (diff)
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)
260 } 260 }
261 } 261 }
262 } 262 }
263 mutex_unlock(&m->lock);
264 file->f_version = m->version; 263 file->f_version = m->version;
264 mutex_unlock(&m->lock);
265 return retval; 265 return retval;
266} 266}
267EXPORT_SYMBOL(seq_lseek); 267EXPORT_SYMBOL(seq_lseek);