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

Open
wants to merge 1 commit into
base: google/2.6
Choose a base branch
from

Commits on Sep 27, 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.
    
    Change-Id: Icbd5abb648110559851002301e758128e4ced2c7
    Signed-off-by: Johann Lombardi <johann.lombardi@gmail.com>
    johannlombardi authored and jolivier23 committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    68a3866 View commit details
    Browse the repository at this point in the history