From 5a256eaed19980ad5508bc5a7b0a71a84aba0963 Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Fri, 12 May 2023 16:47:09 +1000 Subject: [PATCH] zil_close: don't try to deallocate on-disk blocks If we're force-exporting or failed then there's no guarantee the IO will get anywhere. If its a clean shutdown then that's actually the lead block and it'll be sorted out during replay or next txg. (cherry picked from commit 01e04a4eef7811a31a6258c99d0cc51217732758) --- module/zfs/zil.c | 1 - 1 file changed, 1 deletion(-) diff --git a/module/zfs/zil.c b/module/zfs/zil.c index bf8a6b29bb..2c3fbcff08 100644 --- a/module/zfs/zil.c +++ b/module/zfs/zil.c @@ -4064,7 +4064,6 @@ zil_close(zilog_t *zilog) if (lwb->lwb_buf != NULL) zio_buf_free(lwb->lwb_buf, lwb->lwb_sz); - zio_free(zilog->zl_spa, txg, &lwb->lwb_blk); zil_free_lwb(zilog, lwb); } while ((lwb = list_head(&zilog->zl_lwb_list)) != NULL);