summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2010-10-26 23:22:03 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-27 01:52:10 +0200
commite199b5d1fed13f5e8f47a0ee8216f36244dad1f4 (patch)
tree32b746b1ea5f59a9cf33d14b119236c78d18b398 /mm
parentvmalloc: rename temporary variable in __insert_vmap_area() (diff)
downloadlinux-e199b5d1fed13f5e8f47a0ee8216f36244dad1f4.tar.xz
linux-e199b5d1fed13f5e8f47a0ee8216f36244dad1f4.zip
vmalloc: annotate lock context change on s_start/stop()
s_start() and s_stop() grab/release vmlist_lock but were missing proper annotations. Add them. Signed-off-by: Namhyung Kim <namhyung@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/vmalloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 55c7a47391f6..f492c774fa7b 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -2350,6 +2350,7 @@ void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms)
#ifdef CONFIG_PROC_FS
static void *s_start(struct seq_file *m, loff_t *pos)
+ __acquires(&vmlist_lock)
{
loff_t n = *pos;
struct vm_struct *v;
@@ -2376,6 +2377,7 @@ static void *s_next(struct seq_file *m, void *p, loff_t *pos)
}
static void s_stop(struct seq_file *m, void *p)
+ __releases(&vmlist_lock)
{
read_unlock(&vmlist_lock);
}