]> git.proxmox.com Git - mirror_spl.git/commit
Fix bug in SPLAT taskq:front
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 30 Sep 2014 21:47:10 +0000 (17:47 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 3 Oct 2014 17:42:20 +0000 (10:42 -0700)
commit81857a34d1d767abf40aea7e6db074d8cbf7b49f
tree969072669debe15144168ae2c5b417fa6535e8b0
parente3020723dc43af2bc22af0d68571a61daf9b44d0
Fix bug in SPLAT taskq:front

While running SPLAT on a kernel with CONFIG_DEBUG_ATOMIC_SLEEP
enabled the taskq:front was flagged as a test which might sleep
which in an unsafe context.  Specifically, the splat_vprint()
function which internally takes a mutex was being called under
a spin lock.  Moving the log function outside the spin lock
cleanly solves this issue.

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