]> git.proxmox.com Git - mirror_spl.git/commit - module/spl/spl-vnode.c
Fix invalid context bug
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 11 Jun 2012 16:12:37 +0000 (09:12 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 11 Jun 2012 16:17:45 +0000 (09:17 -0700)
commit2371321e8a3d29e19cbc3a280f48636211abb480
tree4d730ed41513f4121f72db1227df06437b378e72
parent93b0dc92eab55f8729b4798b383d4670073ebddc
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
module/spl/spl-vnode.c