From f20ad6fb108b0f80d4f4b98edd20390b15108f68 Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Mon, 15 Apr 2024 11:29:47 +1000 Subject: [PATCH] zil_commit_impl: don't assert ZIL is not suspended zil_suspend() forces a full ZIL commit before suspending the ZIL, so has to be allowed to call it! --- module/zfs/zil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/zil.c b/module/zfs/zil.c index edc5999b95..b8477b2f9d 100644 --- a/module/zfs/zil.c +++ b/module/zfs/zil.c @@ -3607,7 +3607,7 @@ zil_commit(zilog_t *zilog, uint64_t foid) int zil_commit_impl(zilog_t *zilog, uint64_t foid) { - ASSERT0(zil_failed(zilog) || zilog->zl_suspend > 0); + ASSERT0(zil_failed(zilog)); ZIL_STAT_BUMP(zil_commit_count);