Whamcloud - gitweb
LU-10391 ptlrpc: change cc_nid in nrs to be struct lnet_nid 00/50100/6
authorMr NeilBrown <neilb@suse.de>
Thu, 26 May 2022 04:34:10 +0000 (14:34 +1000)
committerOleg Drokin <green@whamcloud.com>
Tue, 11 Apr 2023 20:03:51 +0000 (20:03 +0000)
commit36a199db2b174ba95b683b5e641443357ad24036
treec273135f3e6e89c58a7d38e59fe778cd4284408f
parent60e6e35f4cad3f79b2e96ddf41a8d8a02d6047ac
LU-10391 ptlrpc: change cc_nid in nrs to be struct lnet_nid

switch to struct lnet_nid and adjust accordingly.

Note the return value of nrs_crrn_cmpfn() is changed from a bool to
"0 or negative error" to make it more clear which is success and which
is failure.  The end result is the same.

Test-Parameters:trivial testlist=sanityn envdefinitions=ONLY=77b
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I3e5f2e9d88d7aeccb68ebfb4c814cc4e388cbc42
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50100
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: jsimmons <jsimmons@infradead.org>
Reviewed-by: Nikitas Angelinas <nikitas.angelinas@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
lustre/include/lustre_nrs_crr.h
lustre/ptlrpc/nrs_crr.c