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/36623/
Subject: LU-12756 lnet: Avoid redundant peer NI lookups
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b00ac5f7038434a339b235445c260f439a409b49