]> git.baikalelectronics.ru Git - kernel.git/commit
locking/mutex: Explicitly mark task as running after wakeup
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 20 Jan 2015 01:39:21 +0000 (17:39 -0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 4 Feb 2015 06:57:33 +0000 (07:57 +0100)
commit6e861e19c62256fdbfbe9171e04f4f9b6ad2e315
treef4d0686f20ce90cad1a57aea2f752097e4263595
parent1990be2e4dd95141f21b2435f236e278af19754b
locking/mutex: Explicitly mark task as running after wakeup

By the time we wake up and get the lock after being asleep
in the slowpath, we better be running. As good practice,
be explicit about this and avoid any mischief.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1421717961.4903.11.camel@stgolabs.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/mutex.c