mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-30 03:44:32 +03:00
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 <rob.norris@klarasystems.com> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Tony Hutter <hutter2@llnl.gov>
This commit is contained in:
parent
5c67820265
commit
8be2f4c3d2
@ -2553,7 +2553,7 @@ zio_suspend(spa_t *spa, zio_t *zio, zio_suspend_reason_t reason)
|
|||||||
|
|
||||||
if (reason != ZIO_SUSPEND_MMP) {
|
if (reason != ZIO_SUSPEND_MMP) {
|
||||||
cmn_err(CE_WARN, "Pool '%s' has encountered an uncorrectable "
|
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,
|
(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.
|
* Reexecute all previously suspended i/o.
|
||||||
*/
|
*/
|
||||||
mutex_enter(&spa->spa_suspend_lock);
|
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;
|
spa->spa_suspended = ZIO_SUSPEND_NONE;
|
||||||
cv_broadcast(&spa->spa_suspend_cv);
|
cv_broadcast(&spa->spa_suspend_cv);
|
||||||
pio = spa->spa_suspend_zio_root;
|
pio = spa->spa_suspend_zio_root;
|
||||||
|
Loading…
Reference in New Issue
Block a user