Skip to content

Commit

Permalink
vmalloc: annotate lock context change on s_start/stop()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Namhyung Kim authored and Linus Torvalds committed Oct 26, 2010
1 parent 170168d commit e199b5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mm/vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
Expand Down

0 comments on commit e199b5d

Please sign in to comment.