]> git.proxmox.com Git - mirror_zfs.git/commit
Hold the zfs_snapentry_t before dispatch
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 14 Dec 2015 18:59:25 +0000 (10:59 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 14 Dec 2015 20:06:31 +0000 (12:06 -0800)
commit245b7ab3d1c06efe5b76a9412996fac50aa77f72
tree124c9e2aa1dc69738d2733ab824cfa52f17c78e1
parent199766017076de5bddd0dad4f95f29361fc04169
Hold the zfs_snapentry_t before dispatch

While exceptionally unlikely to cause a problem the zfs_snapentry_t
hold should be taken before the dispatch to prevent any possibility
of the task being processed before the hold.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
module/zfs/zfs_ctldir.c