HomeFreeBSD

Move dmu_buf_rele() after dsl_dataset_sync_done()

Description

Move dmu_buf_rele() after dsl_dataset_sync_done()

Otherwise the dataset may be freed after the last dmu_buf_rele() leading
to a panic.

Reviewed-by: Mark Maybee <mark.maybee@delphix.com>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #14522
Closes #14523

Details

Provenance
g_amanakis_yahoo.comAuthored on Feb 24 2023, 1:14 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 1 2023, 5:36 PM
Parents
rG083239575a2a: Partially revert eee9362a7
Branches
Unknown
Tags
Unknown