rmap: annotate lock context change on page_[un]lock_anon_vma()
authorNamhyung Kim <namhyung@gmail.com>
Tue, 26 Oct 2010 21:22:01 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:09 +0000 (16:52 -0700)
commitea4525b6008fb29553306ec6719f8e6930ac9499
tree1d168e0a05a5f2fc962b8a6e991a21b704ad6e0b
parent1b36ba815bd91f17e31277a44dd5c6b6a5a8d97e
rmap: annotate lock context change on page_[un]lock_anon_vma()

The page_lock_anon_vma() conditionally grabs RCU and anon_vma lock but
page_unlock_anon_vma() releases them unconditionally.  This leads sparse
to complain about context imbalance.  Annotate 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>
include/linux/rmap.h
mm/rmap.c