[LU-14665] simplify lnet_ni_add_interface Created: 04/May/21  Updated: 02/Jun/21  Resolved: 02/Jun/21

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

Type: Improvement Priority: Trivial
Reporter: Olaf Faaland Assignee: Olaf Faaland
Resolution: Fixed Votes: 0
Labels: llnl, llnlfixready

Rank (Obsolete): 9223372036854775807

 Description   

The function increments a counter if (ni->ni_interface != NULL) and then checks the counter to decide whether to exit with an error. The counter isn't used anywhere else. The comment is also next to the wrong code.



 Comments   
Comment by Gerrit Updater [ 04/May/21 ]

Olaf Faaland-LLNL (faaland1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/43525
Subject: LU-14665 lnet: simplify lnet_ni_add_interface
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 78a73e39b48efa92359c4d920b40e377cba99af0

Comment by Gerrit Updater [ 02/Jun/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43525/
Subject: LU-14665 lnet: simplify lnet_ni_add_interface
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b77a6d86936c32bb5f36e9806323ba00a18b0f4b

Comment by Peter Jones [ 02/Jun/21 ]

landed for 2.15

Generated at Sat Feb 10 03:11:43 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.