aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-09-10 10:21:20 +1000
committerGitHub <[email protected]>2024-09-09 17:21:20 -0700
commit8be2f4c3d2c43b031fd568240beebae1b0bc7423 (patch)
tree3dcea5e32aac2684b8aa9c0da3d54b267f7dbb58 /module/zfs
parent5c67820265c18e82c2d79c77ab09fc46904b58b8 (diff)
zio_resume: log when unsuspending the pool (#16485)
When reviewing logs after a failure, its useful to see where unsuspend/resume was requested. Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Signed-off-by: Rob Norris <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Tony Hutter <[email protected]>
Diffstat (limited to 'module/zfs')
-rw-r--r--module/zfs/zio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/module/zfs/zio.c b/module/zfs/zio.c
index e4ccd144f..53992931e 100644
--- a/module/zfs/zio.c
+++ b/module/zfs/zio.c
@@ -2553,7 +2553,7 @@ zio_suspend(spa_t *spa, zio_t *zio, zio_suspend_reason_t reason)
if (reason != ZIO_SUSPEND_MMP) {
cmn_err(CE_WARN, "Pool '%s' has encountered an uncorrectable "
- "I/O failure and has been suspended.\n", spa_name(spa));
+ "I/O failure and has been suspended.", spa_name(spa));
}
(void) zfs_ereport_post(FM_EREPORT_ZFS_IO_FAILURE, spa, NULL,
@@ -2589,6 +2589,10 @@ zio_resume(spa_t *spa)
* Reexecute all previously suspended i/o.
*/
mutex_enter(&spa->spa_suspend_lock);
+ if (spa->spa_suspended != ZIO_SUSPEND_NONE)
+ cmn_err(CE_WARN, "Pool '%s' was suspended and is being "
+ "resumed. Failed I/O will be retried.",
+ spa_name(spa));
spa->spa_suspended = ZIO_SUSPEND_NONE;
cv_broadcast(&spa->spa_suspend_cv);
pio = spa->spa_suspend_zio_root;