]> git.baikalelectronics.ru Git - kernel.git/commit
rtmutex: No need to keep task ref for lock owner check
authorThomas Gleixner <tglx@linutronix.de>
Sat, 7 Jun 2014 10:10:36 +0000 (12:10 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 21 Jun 2014 20:05:30 +0000 (22:05 +0200)
commitde653feb3eb88bd73cf5f3da1c4197e0e9c2ba6d
treeb73baebd96860c39bda9cd8dd91b01bae2e06770
parentfb8a4fdd48cf6a8f676d420655e603a2ea79bc9d
rtmutex: No need to keep task ref for lock owner check

There is no point to keep the task ref across the check for lock
owner. Drop the ref before that, so the protection context is clear.

Found while documenting the chain walk.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
kernel/locking/rtmutex.c