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

migration should enqueue nonblock locks for objects in linkEA

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.8.0
    • Lustre 2.8.0
    • None
    • 3
    • 9223372036854775807

    Description

      During migration, it needs to lock all of parent objects in the linkea of the migrating object, so these parent objects can change the name entry after the migration. But the lock order might conflict with the normal parent-child lock order. So it should use mdt_object_lock_try(), which will enqueue nonblocking locks, i.e. once there are conflicting locks, the migration will return -EBUSY, and the user can retry the migration later.

      Attachments

        Issue Links

          Activity

            [LU-6997] migration should enqueue nonblock locks for objects in linkEA

            Patch has landed for 2.8.

            jgmitter Joseph Gmitter (Inactive) added a comment - Patch has landed for 2.8.

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15970/
            Subject: LU-6997 mdt: enqueue nonblocking locks in migration
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 76e38a7f80f5180e5ab1ac7dd518a4bd1a43cf87

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15970/ Subject: LU-6997 mdt: enqueue nonblocking locks in migration Project: fs/lustre-release Branch: master Current Patch Set: Commit: 76e38a7f80f5180e5ab1ac7dd518a4bd1a43cf87

            wangdi (di.wang@intel.com) uploaded a new patch: http://review.whamcloud.com/15970
            Subject: LU-6997 mdt: enqueue nonblocking locks in migration
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 66da46db3e6ca6fe5682a3a4bc34db2576a385ea

            gerrit Gerrit Updater added a comment - wangdi (di.wang@intel.com) uploaded a new patch: http://review.whamcloud.com/15970 Subject: LU-6997 mdt: enqueue nonblocking locks in migration Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 66da46db3e6ca6fe5682a3a4bc34db2576a385ea

            People

              di.wang Di Wang
              di.wang Di Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: