HomeFreeBSD

Serialize ZTHR operations to eliminate races

Description

Serialize ZTHR operations to eliminate races

Adds a new lock for serializing operations on zthrs.
The commit also includes some code cleanup and
refactoring.

Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: Tom Caputi <tcaputi@datto.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #8229

Details

Provenance
Serapheim Dimitropoulos <serapheimd@gmail.com>Authored on Jan 13 2019, 6:09 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 13 2019, 6:09 PM
Parents
rG83c796c5e9d9: zfs filesystem skipped by df -h
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG61c3391acc98: Serialize ZTHR operations to eliminate races (authored by Serapheim Dimitropoulos <serapheimd@gmail.com>).Jan 13 2019, 6:09 PM