diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-10-26 17:22:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 19:52:10 -0400 |
commit | e199b5d1fed13f5e8f47a0ee8216f36244dad1f4 (patch) | |
tree | 32b746b1ea5f59a9cf33d14b119236c78d18b398 /mm | |
parent | 170168d0a351c045adc0bee0987e51dfc82890c0 (diff) |
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.c | 2 |
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) | |||
2350 | 2350 | ||
2351 | #ifdef CONFIG_PROC_FS | 2351 | #ifdef CONFIG_PROC_FS |
2352 | static void *s_start(struct seq_file *m, loff_t *pos) | 2352 | static void *s_start(struct seq_file *m, loff_t *pos) |
2353 | __acquires(&vmlist_lock) | ||
2353 | { | 2354 | { |
2354 | loff_t n = *pos; | 2355 | loff_t n = *pos; |
2355 | struct vm_struct *v; | 2356 | struct vm_struct *v; |
@@ -2376,6 +2377,7 @@ static void *s_next(struct seq_file *m, void *p, loff_t *pos) | |||
2376 | } | 2377 | } |
2377 | 2378 | ||
2378 | static void s_stop(struct seq_file *m, void *p) | 2379 | static void s_stop(struct seq_file *m, void *p) |
2380 | __releases(&vmlist_lock) | ||
2379 | { | 2381 | { |
2380 | read_unlock(&vmlist_lock); | 2382 | read_unlock(&vmlist_lock); |
2381 | } | 2383 | } |