Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-8353

mdt unlink should lock parent before lookup child

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.9.0
    • Lustre 2.8.0
    • 3
    • 9223372036854775807

    Description

      In DNE Commit-on-Sharing implementation, mdt_reint_unlink() changed code to lookup child before lock parent, as is to find whether current operation is distributed, if so it needs to trigger commit of local changes to eliminate dependencies. But this may cause stale child used in later code. We should always follow lock-before-lookup semantic.

      Attachments

        Issue Links

          Activity

            [LU-8353] mdt unlink should lock parent before lookup child
            jgmitter Joseph Gmitter (Inactive) made changes -
            Link New: This issue is related to JFC-22 [ JFC-22 ]
            di.wang Di Wang made changes -
            Link New: This issue is related to LU-6844 [ LU-6844 ]
            jgmitter Joseph Gmitter (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            jgmitter Joseph Gmitter (Inactive) made changes -
            Link New: This issue is related to LU-7117 [ LU-7117 ]
            laisiyao Lai Siyao created issue -

            People

              laisiyao Lai Siyao
              laisiyao Lai Siyao
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: