From: Namhyung Kim Date: Tue, 26 Oct 2010 21:22:03 +0000 (-0700) Subject: vmalloc: annotate lock context change on s_start/stop() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e199b5d1fed13f5e8f47a0ee8216f36244dad1f4;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 55c7a47391f..f492c774fa7 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); }