Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
9223372036854775807
Description
lnet_select_pathway() contains a fair amount of duplicated code. I took a stab at refactoring this function and I believe I have a functionally equivalent implementation with about half as much code.
During that process I noted that the lnet_nid2peerni_locked() function takes a ref on the lnet_peer_ni
object that it returns, however most callers of this function do not need this reference as they hold a net lock when referencing the lnet_peer_ni. So some additonal code removal is possible here as well.
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36540/
Subject: LU-12756 lnet: Remove unnecessary rtr_nid argument
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 357fa4a84f4bb0a0b54f176ab8e2d4f59be80bb6