Commit e199b5d1fed13f5e8f47a0ee8216f36244dad1f4

Authored by Namhyung Kim
Committed by Linus Torvalds
1 parent 170168d0a3

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -2350,6 +2350,7 @@
2350 2350  
2351 2351 #ifdef CONFIG_PROC_FS
2352 2352 static void *s_start(struct seq_file *m, loff_t *pos)
  2353 + __acquires(&vmlist_lock)
2353 2354 {
2354 2355 loff_t n = *pos;
2355 2356 struct vm_struct *v;
... ... @@ -2376,6 +2377,7 @@
2376 2377 }
2377 2378  
2378 2379 static void s_stop(struct seq_file *m, void *p)
  2380 + __releases(&vmlist_lock)
2379 2381 {
2380 2382 read_unlock(&vmlist_lock);
2381 2383 }