Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZAP: Massively switch to _by_dnode() interfaces #15951

Merged
merged 1 commit into from
Mar 25, 2024

Commits on Mar 22, 2024

  1. ZAP: Massively switch to _by_dnode() interfaces

    Before this change ZAP called dnode_hold() for almost every block
    access, that was clearly visible in profiler under heavy load, such
    as BRT.  This patch makes it always hold the dnode reference between
    zap_lockdir() and zap_unlockdir().  It allows to avoid most of dnode
    operations between those.  It also adds several new _by_dnode() APIs
    to ZAP and uses them in BRT code.  Also adds dmu_prefetch_by_dnode()
    variant and uses it in the ZAP code.
    
    After this there remains only one call to dmu_buf_dnode_enter(),
    which seems to be unneeded.  So remove the call and the functions.
    
    Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
    Sponsored by:	iXsystems, Inc.
    amotin committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    35dd024 View commit details
    Browse the repository at this point in the history