HomeFreeBSD

Hold the zfs_snapentry_t before dispatch

Description

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>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Dec 14 2015, 6:59 PM
Parents
rG199766017076: Fix snapshot automount race cause EREMOTE
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG245b7ab3d1c0: Hold the zfs_snapentry_t before dispatch (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Dec 14 2015, 8:06 PM