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

statahead: using try lock for batched statahead to avoid deadlock with rename and migrate operations

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • None
    • None
    • 9223372036854775807

    Description

      There may be possible racing between batched statahead RPC and rename()/migrate() operation.
      To avoid this racer, the MDT uses a DLM trylock to obtain the DLM PR lock for file attributes in a batched statahead RPC. A failed try lock means other users maybe modify the directory simultaneously, it should stop batched RPC for statahead immediately.

      Attachments

        Issue Links

          Activity

            [LU-15562] statahead: using try lock for batched statahead to avoid deadlock with rename and migrate operations
            pjones Peter Jones added a comment -

            Landed for 2.16

            pjones Peter Jones added a comment - Landed for 2.16

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/46549/
            Subject: LU-15562 statahead: using try lock for batched RPCs
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 58549f9780418d548c9af284dd39b6a436878a7a

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/46549/ Subject: LU-15562 statahead: using try lock for batched RPCs Project: fs/lustre-release Branch: master Current Patch Set: Commit: 58549f9780418d548c9af284dd39b6a436878a7a

            "Yingjin Qian <qian@ddn.com>" uploaded a new patch: https://review.whamcloud.com/46549
            Subject: LU-15562 statahead: using try lock for batched RPCs
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: f118b29138dcb9517b5eb311200fb8d0a751f6c4

            gerrit Gerrit Updater added a comment - "Yingjin Qian <qian@ddn.com>" uploaded a new patch: https://review.whamcloud.com/46549 Subject: LU-15562 statahead: using try lock for batched RPCs Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: f118b29138dcb9517b5eb311200fb8d0a751f6c4

            People

              qian_wc Qian Yingjin
              qian_wc Qian Yingjin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: