diff options
author | Alexey Dobriyan <adobriyan@sw.ru> | 2007-07-15 23:40:22 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 09:05:44 -0700 |
commit | 00c5746da9fc6a793b9d94a8001ded5929f3a773 (patch) | |
tree | 3e8bf3568ef813a3dba10420aa31efaad8b2ad5d /fs | |
parent | a6739af8b9e8bf0fd1fb3f4f8406a9f650cb733a (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')
-rw-r--r-- | fs/seq_file.c | 2 |
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); |