Browse Source

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
d6b7a781c5
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>
master
Alexey Dobriyan 14 years ago
committed by Linus Torvalds
parent
commit
00c5746da9
  1. 2
      fs/seq_file.c

2
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);

Loading…
Cancel
Save