HomeFreeBSD

Need a long hold in zpl_mount_impl

Description

Need a long hold in zpl_mount_impl

In zpl_mount_impl, there is:

    dmu_objset_hold	; returns with pool & ds held
    dsl_pool_rele

    sget

    dsl_dataset_rele

As spelled out in the "DSL Pool Configuration Lock" in dsl_pool.c,
this requires a long hold.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Paul Zuchowski <pzuchowski@datto.com>
Signed-off-by: John Poduska <jpoduska@datto.com>
Closes #10936

Details

Provenance
John Poduska <jpoduska@datto.com>Authored on Sep 17 2020, 5:53 PM
GitHub <noreply@github.com>Committed on Sep 17 2020, 5:53 PM
Parents
rG741b20ce0c83: libzfsbootenv: lzbe_nvlist_set needs to store bootenv version VB_NVLIST
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG5bed68bdc410: Need a long hold in zpl_mount_impl (authored by John Poduska <jpoduska@datto.com>).Sep 17 2020, 5:53 PM