From cf0977ad72e97ae7d2aad1f0b6a2fe1a0209bbe7 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Tue, 12 Jan 2021 15:25:52 -0700 Subject: Parallelize vdev_validate The runtime of vdev_validate is dominated by the disk accesses in vdev_label_read_config. Speed it up by validating all vdevs in parallel using a taskq. Sponsored by: Axcient Reviewed-by: Brian Behlendorf Signed-off-by: Alan Somers Closes #11470 --- include/sys/vdev_impl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/sys/vdev_impl.h b/include/sys/vdev_impl.h index c509d390f..db4fe1447 100644 --- a/include/sys/vdev_impl.h +++ b/include/sys/vdev_impl.h @@ -271,7 +271,9 @@ struct vdev { boolean_t vdev_nonrot; /* true if solid state */ int vdev_load_error; /* error on last load */ int vdev_open_error; /* error on last open */ + int vdev_validate_error; /* error on last validate */ kthread_t *vdev_open_thread; /* thread opening children */ + kthread_t *vdev_validate_thread; /* thread validating children */ uint64_t vdev_crtxg; /* txg when top-level was added */ /* -- cgit v1.2.3