aboutsummaryrefslogtreecommitdiff
path: root/module/zfs/spa.c
diff options
context:
space:
mode:
authorOlaf Faaland <faaland1@llnl.gov>2018-03-15 17:56:55 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2018-03-15 17:56:55 +0000
commitcec3a0a1bb08574260a9e39301a24ce79dbfb69a (patch)
treee1001369e5229c9b304b67b371b1096496deedeb /module/zfs/spa.c
parent38742209322b5b3d93635a4820b2f9c755aadee8 (diff)
downloadsrc-cec3a0a1bb08574260a9e39301a24ce79dbfb69a.tar.gz
src-cec3a0a1bb08574260a9e39301a24ce79dbfb69a.zip
Diffstat (limited to 'module/zfs/spa.c')
-rw-r--r--module/zfs/spa.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/module/zfs/spa.c b/module/zfs/spa.c
index 736b51feae1e..1e9e7b0131b9 100644
--- a/module/zfs/spa.c
+++ b/module/zfs/spa.c
@@ -3766,10 +3766,14 @@ spa_get_stats(const char *name, nvlist_t **config,
ZPOOL_CONFIG_ERRCOUNT,
spa_get_errlog_size(spa)) == 0);
- if (spa_suspended(spa))
+ if (spa_suspended(spa)) {
VERIFY(nvlist_add_uint64(*config,
ZPOOL_CONFIG_SUSPENDED,
spa->spa_failmode) == 0);
+ VERIFY(nvlist_add_uint64(*config,
+ ZPOOL_CONFIG_SUSPENDED_REASON,
+ spa->spa_suspended) == 0);
+ }
spa_add_spares(spa, *config);
spa_add_l2cache(spa, *config);
@@ -6984,7 +6988,7 @@ spa_sync(spa_t *spa, uint64_t txg)
if (error == 0)
break;
- zio_suspend(spa, NULL);
+ zio_suspend(spa, NULL, ZIO_SUSPEND_IOERR);
zio_resume_wait(spa);
}
dmu_tx_commit(tx);