[LU-1601] Flock deadlock isn't detected while accessing files from 2 mount points Created: 05/Jul/12  Updated: 04/Oct/13  Resolved: 19/Sep/13

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

Type: Bug Priority: Minor
Reporter: Andriy Skulysh Assignee: Keith Mannthey (Inactive)
Resolution: Fixed Votes: 0
Labels: patch

Issue Links:
Related
is related to LU-4060 Interop 2.4.0<->2.5 failure on test s... Resolved
Severity: 3
Rank (Obsolete): 8917

 Description   

Deadlock detection algorithm distinguish processes by pair pid+export. It is not correct when one process access files from different mount points.
Proper entity should be pid+NID

testcase patch attached:

/local/work/lustre/lustre/tests/flocks_test 4 /mnt/lustre/file1 /mnt/lustre2/file2
6646: get lock2
6647: get lock1
6646: done
6647: done
6647: get lock2
6646: get lock1

it waits forever, while works with files from one mount point

/local/work/lustre/lustre/tests/flocks_test 4 /mnt/lustre/file1 /mnt/lustre/file2
6639: get lock2
6640: get lock1
6639: done
6640: done
6639: get lock1
6640: get lock2
fcntl cmd 7 failed: Resource deadlock avoided
6640: done
6640: exit rc=0
6639: done
6639: exit rc=0



 Comments   
Comment by Andriy Skulysh [ 05/Jul/12 ]

CODE: http://review.whamcloud.com/3276

Comment by Andriy Skulysh [ 09/Oct/12 ]

Xyratex-bug-id: MRP-449

Comment by Peter Jones [ 19/Sep/13 ]

Landed for 2.5.0

Generated at Sat Feb 10 01:18:04 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.