[LU-5734] LNet dynamic control: lnet_dyn_add_ni() can't clean up failed NI in some cases Created: 13/Oct/14 Updated: 07/Jan/15 Resolved: 07/Jan/15 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.7.0 |
| Fix Version/s: | Lustre 2.7.0 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Isaac Huang (Inactive) | Assignee: | Amir Shehata (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Severity: | 3 | ||||||||||||||||||||||||||||
| Rank (Obsolete): | 16097 | ||||||||||||||||||||||||||||
| Description |
|
In lnet_dyn_add_ni(), if lnet_startup_lndnis() fails, then NI on the local &net_head list is freed. But lnet_startup_lndnis(&net_head) can fail after list_del(&ni->ni_list), i.e. after the NI has been removed already from the &net_head. In this case I failed to see where the NI gets cleaned up and freed. |
| Comments |
| Comment by Isaac Huang (Inactive) [ 14/Oct/14 ] |
|
It should be fixed together with |
| Comment by Wang Shilong (Inactive) [ 15/Oct/14 ] |
|
Hi lsaac Huang, I will try to fix this issue together with Thanks very much for your comments and help! |
| Comment by Isaac Huang (Inactive) [ 01/Nov/14 ] |
|
Another related issue |
| Comment by Andreas Dilger [ 07/Nov/14 ] |
|
Wang, are you working on a patch for this issue? |
| Comment by Wang Shilong (Inactive) [ 10/Nov/14 ] |
|
Hi Andreas Dilger, Previously, the fix is together with my patch, Now Amir is giving a quick fix for Best Regards, |
| Comment by Wang Shilong (Inactive) [ 11/Nov/14 ] |
|
Amir Shehata just send this patch to fix it: http://review.whamcloud.com/#/c/12658/ Best Regards, |
| Comment by Gerrit Updater [ 07/Jan/15 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12658/ |
| Comment by Jodi Levi (Inactive) [ 07/Jan/15 ] |
|
Patch landed to Master. |