[PATCH] lock/semaphore: Avoid a deadlock within __up()

From: Byungchul Park
Date: Tue Feb 02 2016 - 02:15:11 EST


Since I faced a infinite recursive printk() bug, I've tried to propose
patches the title of which is "lib/spinlock_debug.c: prevent a recursive
cycle in the debug code". But I noticed the root problem cannot be fixed
by that, through some discussion thanks to Sergey and Peter. So I focused
on preventing the DEADLOCK.

-----8<-----