diff options
author | Alan Somers <[email protected]> | 2021-01-12 15:25:52 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-01-26 19:36:51 -0800 |
commit | cf0977ad72e97ae7d2aad1f0b6a2fe1a0209bbe7 (patch) | |
tree | f27444b3a2240ae85d06e77e1ebcd105470cc780 /include | |
parent | 67874d5487f74c11503cb4f195c7a658f628b168 (diff) |
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 <[email protected]>
Signed-off-by: Alan Somers <[email protected]>
Closes #11470
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/vdev_impl.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ /* |