diff options
author | jwpoduska <[email protected]> | 2019-11-27 13:15:01 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-11-27 10:15:01 -0800 |
commit | 3c819a2c7da4560abb75b9dbf9a314ceafddaf86 (patch) | |
tree | 665a9607adfe647d0336e7b9499c97da2d2d1dbf /include/sys/spa.h | |
parent | 894f6696b4cf7cc2562da159ba5e6e8c806f35de (diff) |
Prevent unnecessary resilver restarts
If a device is participating in an active resilver, then it will have a
non-empty DTL. Operations like vdev_{open,reopen,probe}() can cause the
resilver to be restarted (or deferred to be restarted later), which is
unnecessary if the DTL is still covered by the current scan range. This
is similar to the logic in vdev_dtl_should_excise() where the DTL can
only be excised if it's max txg is in the resilvered range.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: John Gallagher <[email protected]>
Reviewed-by: Kjeld Schouten <[email protected]>
Signed-off-by: John Poduska <[email protected]>
Issue #840
Closes #9155
Closes #9378
Closes #9551
Closes #9588
Diffstat (limited to 'include/sys/spa.h')
-rw-r--r-- | include/sys/spa.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sys/spa.h b/include/sys/spa.h index cae29a4f4..e460dc2dd 100644 --- a/include/sys/spa.h +++ b/include/sys/spa.h @@ -26,7 +26,7 @@ * Copyright 2013 Saso Kiselkov. All rights reserved. * Copyright (c) 2014 Integros [integros.com] * Copyright 2017 Joyent, Inc. - * Copyright (c) 2017 Datto Inc. + * Copyright (c) 2017, 2019, Datto Inc. All rights reserved. * Copyright (c) 2017, Intel Corporation. */ @@ -768,6 +768,7 @@ extern void spa_async_request(spa_t *spa, int flag); extern void spa_async_unrequest(spa_t *spa, int flag); extern void spa_async_suspend(spa_t *spa); extern void spa_async_resume(spa_t *spa); +extern int spa_async_tasks(spa_t *spa); extern spa_t *spa_inject_addref(char *pool); extern void spa_inject_delref(spa_t *spa); extern void spa_scan_stat_init(spa_t *spa); |