]> git.proxmox.com Git - mirror_zfs.git/commit
Serialize ZTHR operations to eliminate races
authorSerapheim Dimitropoulos <serapheimd@gmail.com>
Sun, 13 Jan 2019 18:09:46 +0000 (10:09 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 13 Jan 2019 18:09:46 +0000 (10:09 -0800)
commit61c3391acc988573aaf9e59550f863de4affcb68
tree915910c51e0bef4cf4ee0d792c75602e3d814ea3
parent83c796c5e9d9ecb28e9553338f079a5d6b015b10
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
include/sys/spa_checkpoint.h
include/sys/zthr.h
module/zfs/arc.c
module/zfs/spa.c
module/zfs/spa_checkpoint.c
module/zfs/vdev_indirect.c
module/zfs/zthr.c