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: preparation for async dir operation support #30972

Merged
merged 12 commits into from Nov 25, 2019

Commits on Nov 9, 2019

  1. mds: change MDCache::path_traverse()'s 'onfail' argument to flags

    Later pathes will introduce more flags
    
    Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
    ukernel committed Nov 9, 2019
    Copy the full SHA
    e9f94dd View commit details
    Browse the repository at this point in the history
  2. mds: cleanup dentry non-readable check in MDCache::path_traverse()

    unify non-readable checks of null dentry and non-null dentry.
    
    Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
    ukernel committed Nov 9, 2019
    Copy the full SHA
    abad03c View commit details
    Browse the repository at this point in the history
  3. mds: explictly specify if MDCache::path_traverse() needs to check nul…

    …l dentry
    
    Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
    ukernel committed Nov 9, 2019
    Copy the full SHA
    7b8e289 View commit details
    Browse the repository at this point in the history
  4. mds: introduce Locker::wrlock_try()

    So MDCache::predirty_journal_parents can avoid casting MutationRef
    to MDRequestImpl.
    
    Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
    ukernel committed Nov 9, 2019
    Copy the full SHA
    06aca48 View commit details
    Browse the repository at this point in the history
  5. mds: cleanup Locker::acquire_locks()

    define varible 'lock' in the loop that acquires locks
    
    Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
    ukernel committed Nov 9, 2019
    Copy the full SHA
    81f4e9c View commit details
    Browse the repository at this point in the history
  6. mds: define operator<(...) for MutationImpl::LockOp

    Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
    ukernel committed Nov 9, 2019
    Copy the full SHA
    41877de View commit details
    Browse the repository at this point in the history
  7. mds: use single map to track pinned & auth_pinned objects

    reduce memory allocation and fragment
    
    Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
    ukernel committed Nov 9, 2019
    Copy the full SHA
    66035e4 View commit details
    Browse the repository at this point in the history
  8. mds: restrict path that walks into snapdir

    The zero-length component (stands for snapdir) must be at very
    beginning of path. This allow us to easily check if a client request
    want to access snapshot
    
    Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
    ukernel committed Nov 9, 2019
    Copy the full SHA
    097eedb View commit details
    Browse the repository at this point in the history
  9. mds: cleanup Server::try_open_auth_dirfrag()

    Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
    ukernel committed Nov 9, 2019
    Copy the full SHA
    8a077e3 View commit details
    Browse the repository at this point in the history
  10. mds: cleanup code that kills session requests

    Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
    ukernel committed Nov 9, 2019
    Copy the full SHA
    a10f051 View commit details
    Browse the repository at this point in the history
  11. mds: cleanup Capability initialization

    Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
    ukernel committed Nov 9, 2019
    Copy the full SHA
    1c24cf2 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2019

  1. mds: move 'traverse to auth' logic into MDCache::path_traverse

    simplfy code and reduce duplication
    
    Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
    ukernel committed Nov 11, 2019
    Copy the full SHA
    fdaacd7 View commit details
    Browse the repository at this point in the history