[LU-6997] migration should enqueue nonblock locks for objects in linkEA Created: 12/Aug/15  Updated: 24/Aug/15  Resolved: 24/Aug/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.8.0
Fix Version/s: Lustre 2.8.0

Type: Bug Priority: Major
Reporter: Di Wang Assignee: Di Wang
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-6831 The ticket for tracking all DNE2 bugs Reopened
Severity: 3
Rank (Obsolete): 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.



 Comments   
Comment by Gerrit Updater [ 13/Aug/15 ]

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

Comment by Gerrit Updater [ 24/Aug/15 ]

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

Comment by Joseph Gmitter (Inactive) [ 24/Aug/15 ]

Patch has landed for 2.8.

Generated at Sat Feb 10 02:05:06 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.