]> git.proxmox.com Git - mirror_spl.git/commit
Don't allow shrinking a PF_FSTRANS context
authorTim Chase <tim@chase2k.com>
Tue, 31 Mar 2015 12:49:15 +0000 (07:49 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 3 Apr 2015 18:32:31 +0000 (11:32 -0700)
commitae26dd003911277e0c7134b3e4e3a41c300a2fd5
tree836cd9f31cbcf68fa091f51921bc23ce247db154
parentc0899611103c76bb975c7bab5063d937f76e61e6
Don't allow shrinking a PF_FSTRANS context

Avoid deadlocks when entering the shrinker from a PF_FSTRANS context.

This patch also reverts commit d0d5dd7 which added MUTEX_FSTRANS.  Its
use has been deprecated within ZFS as it was an ineffective mechanism
to eliminate deadlocks.  Among other things, it introduced the need for
strict ordering of mutex locking and unlocking in order that the
PF_FSTRANS flag wouldn't set incorrectly.

Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #446
include/sys/mutex.h
module/spl/spl-kmem-cache.c