Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.13.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

         All the file operations have the following locking order - parent,
         child. If a lock for a child is returned to the client, the following
         operations on this file are done by the child fid.
          
         However, the migrate is an exception - it takes the lease lock first and
         takes the PW parent lock next during the MDS_REINT.
          
         At the same time, if there is a parallel racing operation (open) which
         has taken a lock on parent (conflicting with the next MDS_REINT) and
         is trying to take a lock on child - it is blocked until
         the lease cancel comes.
          
         The lease cancel is piggy-backed on the MDS_REINT RPC and is handled
         at the end of the operation, trying to take the conflicting parent lock
         first - thus a deadlock occurs.

      Attachments

        Activity

          [LU-11926] Lost lease lock on migrate error
          pjones Peter Jones added a comment -

          Landed for 2.13

          pjones Peter Jones added a comment - Landed for 2.13

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34182/
          Subject: LU-11926 ldlm: Lost lease lock on migrate error
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: ae7ca90713b444647e682599398b28c8c16b68f7

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34182/ Subject: LU-11926 ldlm: Lost lease lock on migrate error Project: fs/lustre-release Branch: master Current Patch Set: Commit: ae7ca90713b444647e682599398b28c8c16b68f7

          Andriy Skulysh (c17819@cray.com) uploaded a new patch: https://review.whamcloud.com/34182
          Subject: LU-11926 ldlm: Lost lease lock on migrate error
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 1eb1a8f060b54d1a1542f8a11c95d916975fa34a

          gerrit Gerrit Updater added a comment - Andriy Skulysh (c17819@cray.com) uploaded a new patch: https://review.whamcloud.com/34182 Subject: LU-11926 ldlm: Lost lease lock on migrate error Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 1eb1a8f060b54d1a1542f8a11c95d916975fa34a

          People

            askulysh Andriy Skulysh
            askulysh Andriy Skulysh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: