From 1d77dcd40a8799e40539915607ae17c29f5c441c Mon Sep 17 00:00:00 2001 From: Mariusz Zaborski Date: Mon, 27 Nov 2023 21:32:04 +0100 Subject: [PATCH] Allow to cancel export --- module/zfs/spa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/spa.c b/module/zfs/spa.c index 62fdf976cf6e..a5971642f8c8 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -6599,7 +6599,7 @@ spa_export_common(const char *pool, int new_state, nvlist_t **oldconfig, */ if (!force_removal && spa->spa_sync_on) { error = txg_wait_synced_tx(spa->spa_dsl_pool, 0, - NULL, TXG_WAIT_F_NOSUSPEND); + NULL, TXG_WAIT_F_NOSUSPEND | TXG_WAIT_F_SIGNAL); if (error != 0) goto fail; spa_evicting_os_wait(spa);