[LU-2777] error handle of lnet_create_locks is wrong Created: 07/Feb/13  Updated: 27/Feb/13  Resolved: 27/Feb/13

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

Type: Bug Priority: Minor
Reporter: Liang Zhen (Inactive) Assignee: Liang Zhen (Inactive)
Resolution: Duplicate Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 6730

 Description   

lnet_create_locks() called lnet_fini_locks() to revert allocations on failure, but lnet_fini_locks() can't free anything allocated in lnet_create_locks().



 Comments   
Comment by Andreas Dilger [ 08/Feb/13 ]

Looks like a simple patch to change lnet_fini_locks() to be lnet_destroy_locks() (and change the order of these two functions) would fix this. Can you please submit a patch.

Comment by Liang Zhen (Inactive) [ 27/Feb/13 ]

Isaac's patch for LU-2884 has fixed this issue.

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