aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorGeorge Wilson <[email protected]>2024-04-22 12:42:38 -0400
committerGitHub <[email protected]>2024-04-22 09:42:38 -0700
commitc183d164aa11e61dfe1f34907c1a029d75162f1d (patch)
tree2bab94bd56530faaaf5f1aaad5c6ac8467de99f2 /man
parentf4f156157de3f61e55db0429b10c63d02226e115 (diff)
Parallel pool import
This commit allow spa_load() to drop the spa_namespace_lock so that imports can happen concurrently. Prior to dropping the spa_namespace_lock, the import logic will set the spa_load_thread value to track the thread which is doing the import. Consumers of spa_lookup() retain the same behavior by blocking when either a thread is holding the spa_namespace_lock or the spa_load_thread value is set. This will ensure that critical concurrent operations cannot take place while a pool is being imported. The zpool command is also enhanced to provide multi-threaded support when invoking zpool import -a. Lastly, zinject provides a mechanism to insert artificial delays when importing a pool and new zfs tests are added to verify parallel import functionality. Contributions-by: Don Brady <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: George Wilson <[email protected]> Closes #16093
Diffstat (limited to 'man')
-rw-r--r--man/man8/zinject.88
1 files changed, 8 insertions, 0 deletions
diff --git a/man/man8/zinject.8 b/man/man8/zinject.8
index f67b5e378..ad9e7a42b 100644
--- a/man/man8/zinject.8
+++ b/man/man8/zinject.8
@@ -129,6 +129,14 @@ Force a vdev error.
.
.It Xo
.Nm zinject
+.Fl i Ar seconds
+.Ar pool
+.Xc
+Add an artificial delay during the future import of a pool.
+This injector is automatically cleared after the import is finished.
+.
+.It Xo
+.Nm zinject
.Fl I
.Op Fl s Ar seconds Ns | Ns Fl g Ar txgs
.Ar pool