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 #15213

Merged
merged 1 commit into from
Oct 2, 2024

Commits on Sep 28, 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.
    
    Allow-unstable-test: true
    
    Required-githooks: true
    
    Change-Id: Icbd5abb648110559851002301e758128e4ced2c7
    Signed-off-by: Johann Lombardi <johann.lombardi@gmail.com>
    Signed-off-by: Jeff Olivier <jeffolivier@google.com>
    johannlombardi authored and jolivier23 committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    3f7b438 View commit details
    Browse the repository at this point in the history