[LU-7505] A released file lease cannot be taken again Created: 01/Dec/15  Updated: 19/Apr/17  Resolved: 19/Apr/17

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

Type: Bug Priority: Minor
Reporter: Frank Zago (Inactive) Assignee: WC Triage
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates LU-8174 Taking a lease for the 2nd time fails... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Taking a lease, releasing it and then taking it again will fail.

llapi_lease_get(fd, LL_LEASE_RDLCK);   -> returns 0
llapi_lease_put(fd);                   -> returns LL_LEASE_RDLCK
llapi_lease_check(fd)                  -> returns 0 = no lease
llapi_lease_get(fd, LL_LEASE_RDLCK);   -> return -EBUSY

http://review.whamcloud.com/13441 has a commented out reproducer. Change the "#if 0" to "#if 1" in swap_layout_test.c:test15().



 Comments   
Comment by Jinshan Xiong (Inactive) [ 01/Dec/15 ]

Hi Frank,

Nice test code.

Did you have a chance to look into it?

Comment by Frank Zago (Inactive) [ 01/Dec/15 ]

Hi Jinshan. No, I haven't looked into it.

Comment by Henri Doreau (Inactive) [ 19/Apr/17 ]

This is a duplicate of LU-8174, which is fixed. It can be closed as well.

Comment by Peter Jones [ 19/Apr/17 ]

Thanks Henri

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