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

DAOS-13938 dfuse: adjust offset in readdir cache entry list #15190

Merged
merged 1 commit into from
Oct 14, 2024

Commits on Sep 25, 2024

  1. DAOS-13938 dfuse: adjust offset in readdir cache entry list

    The dfuse readdir caching feature stats entries returned by
    dfs readdir that might be legimitely deleted by another process
    or another node. When this happens, the dfuse code decides to
    skip the deleted entry, but might leave the readdir entry cache
    in an inconsistent state causing the following assertion failure
    in dfuse_dre_drop():
    drc->drc_next_offset == expected_offset + 1 || drc->drc_next_offset == READDIR_EOD
    
    This patch fixes the offset in the linked list of cached readdir
    entries to support skipped entries.
    
    Signed-off-by: Johann Lombardi <johann.lombardi@gmail.com>
    johannlombardi committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    5cac231 View commit details
    Browse the repository at this point in the history