From 62a1bf7d19df12a7bb396bf0625a78e2730880cf Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 23 Jan 2026 13:07:47 -0800 Subject: [PATCH] mmp: move "Starting import" log message Move the "Starting import" log message in to the import block so it's matched with the "Fiinshed importing" debug message. Signed-off-by: Brian Behlendorf Reviewed-by: Tony Hutter Reviewed-by: Olaf Faaland Reviewed-by: Akash B --- module/zfs/spa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/zfs/spa.c b/module/zfs/spa.c index 05c594ccd..ca6a7d3bc 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -5757,11 +5757,12 @@ spa_load_impl(spa_t *spa, spa_import_type_t type, const char **ereport) * pool. If we are importing the pool in read-write mode, a few * additional steps must be performed to finish the import. */ - spa_import_progress_set_notes(spa, "Starting import"); if (spa_writeable(spa) && (spa->spa_load_state == SPA_LOAD_RECOVER || spa->spa_load_max_txg == UINT64_MAX)) { uint64_t config_cache_txg = spa->spa_config_txg; + spa_import_progress_set_notes(spa, "Starting import"); + ASSERT(spa->spa_load_state != SPA_LOAD_TRYIMPORT); /*