]> granicus.if.org Git - zfs/commit
splat atomic:64-bit: Create thread outside spin lock
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 2 Nov 2012 21:14:53 +0000 (14:14 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 6 Nov 2012 22:48:57 +0000 (14:48 -0800)
commitb8296bf3e664f1e583335c2ca3287199eb4e3863
tree612be293a70da059e2f69232d6e420925fc9e325
parent0e149d42049a0fc89c9ecdac428dbdfc6fd4e20a
splat atomic:64-bit: Create thread outside spin lock

The Fedora 3.6 debug kernel identified the following issue where
we create a thread under a spin lock.  This isn't safe because
sleeping could result in a deadlock.  Therefore the lock is changed
to a mutex so it's safe to sleep.

  BUG: sleeping function called from invalid context at mm/slub.c:930
  in_atomic(): 1, irqs_disabled(): 0, pid: 10583, name: splat
  1 lock held by splat/10583:

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/splat/splat-atomic.c