Skip to content

Commit

Permalink
mutex_unlock() later in seq_lseek()
Browse files Browse the repository at this point in the history
All manipulations with struct seq_file::version are done under
struct seq_file::lock except one introduced in commit
d6b7a78
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>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Jul 16, 2007
1 parent a6739af commit 00c5746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/seq_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 00c5746

Please sign in to comment.