HomeFreeBSD

Fix invalid context bug

Description

Fix invalid context bug

In the module unload path the vm_file_cache was being destroyed
under a spin lock. Because this operation might sleep it was
possible, although very very unlikely, that this could result
in a deadlock.

This issue was indentified by using a Linux debug kernel and
has been fixed by moving the kmem_cache_destroy() out from under
the spin lock. There is no need to lock this operation here.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes zfsonlinux/zfs#771

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jun 11 2012, 4:12 PM
Parents
rG93b0dc92eab5: Fix ARM 64-bit division
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG2371321e8a3d: Fix invalid context bug (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jun 11 2012, 4:17 PM