]> git.baikalelectronics.ru Git - kernel.git/commit
posix-timers: Annotate lock_timer()
authorNamhyung Kim <namhyung@gmail.com>
Wed, 20 Oct 2010 22:57:34 +0000 (15:57 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 21 Oct 2010 15:30:06 +0000 (17:30 +0200)
commitaf0b3f5bf744ab76727487dc34e26610da1ec0e9
tree620923847a27c966b6b2030d784cc864e8ed06d3
parentafa3584cc9b878d7c87d9fe8abe877411267024d
posix-timers: Annotate lock_timer()

lock_timer() conditionally grabs it_lock in case of returning non-NULL
but unlock_timer() releases it unconditionally. This leads sparse to
complain about the lock context imbalance. Rename and wrap lock_timer
using __cond_lock() macro to make sparse happy.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/posix-timers.c