]> git.proxmox.com Git - mirror_spl-debian.git/commit
Mutex ASSERT on self deadlock
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 19 Aug 2012 19:10:19 +0000 (12:10 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 27 Aug 2012 19:00:55 +0000 (12:00 -0700)
commit3e904f40b4f24db61798ca8c8a9027731cf2ced6
treec125889abf40608464a3a5c6840301755c967b2a
parenteb0f407a2b9089113ef6f2402ebd887511315b43
Mutex ASSERT on self deadlock

Generate an assertion if we're going to deadlock the system by
attempting to acquire a mutex the process is already holding.

There are currently no known instances of this under normal
operation, but it _might_ be possible when using a ZVOL as a
swap device.  I want to ensure we catch this immediately if it
were to occur.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
include/sys/mutex.h