Whamcloud - gitweb
LU-12222 ptlrpc: Check if NID is local, not just lolnd NID 65/38865/2
authorChris Horn <hornc@cray.com>
Mon, 27 Apr 2020 15:07:21 +0000 (10:07 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 7 Aug 2020 21:14:17 +0000 (21:14 +0000)
commit7635e6326de88bfd035c82ac9261e90e4f9b4a1b
tree8962b865a1270fb37d9b65869cb68c81fa7be1a7
parent4494f55aa2fe7d2ae274405fc0f2314193db1c0e
LU-12222 ptlrpc: Check if NID is local, not just lolnd NID

There's a couple places where we check whether a NID is the lolnd NID
but we really want to know whether the NID is local. Use
LNetIsPeerLocal() to accomplish this.

Lustre-change: https://review.whamcloud.com/38388
Lustre-commit: 95bcc24642c4b95d093407fef0947ee2f5a2c01a

Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: Ia17b9b4b54fd1063c42a6f8bdd0e593be1086683
Reviewed-on: https://review.whamcloud.com/38865
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mgc/mgc_request.c
lustre/target/tgt_handler.c