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

mds: handle rctime updates for snaps #42894

Closed

Commits on Aug 23, 2021

  1. mds: handle rctime updates for snaps

    Conditionally update snap rctime only if snap btime is greater than new
    rctime.
    
    If snapshots are taken frequently when lazyio is being used, then the
    rctime may not be updated for the snapshot for which the capabilities
    are flushed by the client, but a subsequent snapshot. This is due to
    the fact that this patch assumes that all relevant data writes have
    been persisted to the OSDs and caps flushed to the MDS before the
    snapshot is taken.
    
    To avoid skipping a snapshot or two for correct rctime updates to
    snapshot directories, the client should wait for at least twice the
    client_oc_max_dirty_age duration before creating the snapshot dir.
    
    Fixes: https://tracker.ceph.com/issues/50238
    Signed-off-by: Milind Changire <mchangir@redhat.com>
    mchangir committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    161296c View commit details
    Browse the repository at this point in the history