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

mdt unlink should lock parent before lookup child

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: