Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Deadlock happens when migrating object has links and linked object has the same parent as migrating directory's parent.

      It is a regression caused by

      commit 5cb0a721aea53ffc8230190c3a0b35e71a47d35b
      Author: Di Wang <di.wang@intel.com>
      Date:   Tue Nov 3 07:32:13 2015 -0800
      
          LU-7383 mdt: retry for busy lock during migration
      

      Unlocking linkea objects doesn't help in this case.

      Attachments

        Issue Links

          Activity

            [LU-10597] lfs mv vs stat deadlock

            It looks like there is still a useful test case in https://review.whamcloud.com/31130

            adilger Andreas Dilger added a comment - It looks like there is still a useful test case in https://review.whamcloud.com/31130
            askulysh Andriy Skulysh added a comment - - edited

            I suppose LU-7383 should be reverted because it introduces bigger problem than fixes.
            In fact I don't understand why linkea object's parents are locked at all, there are might be more links to the file than objects in linkea.

            askulysh Andriy Skulysh added a comment - - edited I suppose LU-7383 should be reverted because it introduces bigger problem than fixes. In fact I don't understand why linkea object's parents are locked at all, there are might be more links to the file than objects in linkea.

            Andriy Skulysh (c17819@cray.com) uploaded a new patch: https://review.whamcloud.com/31130
            Subject: LU-10597 test: lfs migrate vs stat deadlock
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 1ada59a8e67b473e4ecc17e9c3a6d3bdb6e47380

            gerrit Gerrit Updater added a comment - Andriy Skulysh (c17819@cray.com) uploaded a new patch: https://review.whamcloud.com/31130 Subject: LU-10597 test: lfs migrate vs stat deadlock Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 1ada59a8e67b473e4ecc17e9c3a6d3bdb6e47380

            People

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

              Dates

                Created:
                Updated: