LOCKDEP is the kernel detection deadlock means, the default is not turned on, need make menuconfig add configuration open, under the hacking kernel option y Select the following configuration
1. [*] Detect Hard and Soft lockups
2. [*] Detect Hung Tasks
3. [*] RT Mutex debugging, Deadlock detection
4-*-spinlock and Rw-lock debugging:basic checks
5.-*-Mutex Debugging: Basic Checks
6-*-Lock debugging:detect Incorrect freeing of live locks
7. [*] Lock debugging:prove Locking Correctness
8. [*] Lock usage Statistics
Save configuration Compile install kernel, after reboot proc generate the following file description LOCKDEP opened.
/PROC/LOCKDEP
/proc/lockdep_chains
/proc/lockdep_stat
/proc/locks
/proc/lock_stats
Run the system if there is a deadlock, DMESG will give the message.
Reference: Https://stackoverflow.com/questions/20892822/how-to-use-lockdep-feature-in-linux-kernel-for-deadlock-detection