HomeFreeBSD

Fix bug in SPLAT taskq:front

Description

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>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Sep 30 2014, 9:47 PM
Parents
rGe3020723dc43: Linux 3.16 compat: smp_mb__after_clear_bit()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG81857a34d1d7: Fix bug in SPLAT taskq:front (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Oct 3 2014, 5:42 PM