aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzstd
diff options
context:
space:
mode:
authorAlexander Motin <[email protected]>2023-09-20 14:17:11 -0400
committerBrian Behlendorf <[email protected]>2023-09-20 16:41:23 -0700
commit62677576a75e94396e945c4ecd9372f5d34e50cb (patch)
treeba66572c43b2aff127a3c8d84ea16f94f6aa94ab /lib/libzstd
parentf7a07d76ee5a6b698540c6873f194350539a7065 (diff)
ZIL: Fix potential race on flush deferring.
zil_lwb_set_zio_dependency() can not set write ZIO dependency on previous LWB's write ZIO if one is already in done handler and set state to LWB_STATE_WRITE_DONE. So theoretically done handler of next LWB's write ZIO may run before done handler of previous LWB write ZIO completes. In such case we can not defer flushes, since the flush issue process is not locked. This may fix some reported assertions of lwb_vdev_tree not being empty inside zil_free_lwb(). Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes #15278
Diffstat (limited to 'lib/libzstd')
0 files changed, 0 insertions, 0 deletions