mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
raidz_test: respect wall time
When timeout is specified (-t), stop worker threads in the middle of work units. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Gvozden Neskovic <neskovic@gmail.com> Issue #5180 Closes #5190
This commit is contained in:
committed by
Brian Behlendorf
parent
2db28197fe
commit
292d573e70
@@ -49,6 +49,9 @@ typedef struct raidz_test_opts {
|
||||
size_t rto_sanity;
|
||||
size_t rto_gdb;
|
||||
|
||||
/* non-user options */
|
||||
boolean_t rto_should_stop;
|
||||
|
||||
zio_t *zio_golden;
|
||||
raidz_map_t *rm_golden;
|
||||
} raidz_test_opts_t;
|
||||
@@ -62,7 +65,8 @@ static const raidz_test_opts_t rto_opts_defaults = {
|
||||
.rto_sweep = 0,
|
||||
.rto_benchmark = 0,
|
||||
.rto_sanity = 0,
|
||||
.rto_gdb = 0
|
||||
.rto_gdb = 0,
|
||||
.rto_should_stop = B_FALSE
|
||||
};
|
||||
|
||||
extern raidz_test_opts_t rto_opts;
|
||||
|
||||
Reference in New Issue
Block a user