[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 |