Commit 00c5746d authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by 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
d6b7a781
aka "[PATCH] Speed up /proc/pid/maps"
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a6739af8
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment