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)
commit2ffa5a5cd2fe792b6399c903d5172adf088d8ff7
treeb73baebd96860c39bda9cd8dd91b01bae2e06770
parent358c331f391f3e0432f4f96f25017d12ac8d10b1
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