ZIL: single zil_commit_waiter_done() function to complete a waiter

Just making it easier to not get the locking and broadcast wrong.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #17622
This commit is contained in:
Rob Norris
2025-08-12 12:44:51 +10:00
committed by Brian Behlendorf
parent 92da3e18c8
commit f562e0f691
2 changed files with 16 additions and 25 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ typedef struct zil_commit_waiter {
list_node_t zcw_node; /* linkage in lwb_t:lwb_waiter list */
lwb_t *zcw_lwb; /* back pointer to lwb when linked */
boolean_t zcw_done; /* B_TRUE when "done", else B_FALSE */
int zcw_zio_error; /* contains the zio io_error value */
int zcw_error; /* result to return from zil_commit() */
} zil_commit_waiter_t;
/*