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

rename under striped directory may cause deadlock

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.12.0
    • None
    • 3
    • 9223372036854775807

    Description

      In rename locking, there are two situations we need to lock target
      parent before source parent:
      1. source parent is subdir of target parent.
      2. source and target parents are both stripes of the same directory,
      and stripe index of source parent is after that of target parent.

      But the check for the second situation is missing, which may cause
      deadlock if another thread is taking stripe locks of their parent.

      Attachments

        Issue Links

          Activity

            [LU-11104] rename under striped directory may cause deadlock

            Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/32924
            Subject: LU-11104 mdt: rename may cause deadlock
            Project: fs/lustre-release
            Branch: b2_10
            Current Patch Set: 1
            Commit: 2f6186ef9475bf329b828365ee844b42a57d945f

            gerrit Gerrit Updater added a comment - Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/32924 Subject: LU-11104 mdt: rename may cause deadlock Project: fs/lustre-release Branch: b2_10 Current Patch Set: 1 Commit: 2f6186ef9475bf329b828365ee844b42a57d945f
            pjones Peter Jones added a comment -

            Landed for 2.12

            pjones Peter Jones added a comment - Landed for 2.12

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32701/
            Subject: LU-11104 mdt: rename may cause deadlock
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 2131e4eda8fa354747d09bd3427a0a1d19c931e4

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32701/ Subject: LU-11104 mdt: rename may cause deadlock Project: fs/lustre-release Branch: master Current Patch Set: Commit: 2131e4eda8fa354747d09bd3427a0a1d19c931e4
            pjones Peter Jones added a comment - https://review.whamcloud.com/#/c/32738/

            People

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

              Dates

                Created:
                Updated:
                Resolved: