HomeFreeBSD

ZIL: Fix race introduced by f63811f0721.

Description

ZIL: Fix race introduced by f63811f0721.

We are not allowed to access lwb after setting LWB_STATE_FLUSH_DONE
state and dropping zl_lock, since it may be freed by zil_sync().
To free itxs and waiters after dropping the lock we need to move
lwb_itxs and lwb_waiters lists elements to local storage.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #14957
Closes #14959

Details

Provenance
mavAuthored on Jun 9 2023, 5:08 PM
GitHub <noreply@github.com>Committed on Jun 9 2023, 5:08 PM
Parents
rG6c962690245a: Revert "systemd: Use non-absolute paths in Exec* lines"
Branches
Unknown
Tags
Unknown