Whamcloud - gitweb
LU-12222 ptlrpc: Check if NID is local, not just lolnd NID 88/38388/3
authorChris Horn <hornc@cray.com>
Mon, 27 Apr 2020 15:07:21 +0000 (10:07 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 20 May 2020 08:23:20 +0000 (08:23 +0000)
commit95bcc24642c4b95d093407fef0947ee2f5a2c01a
treec67e840060debd0508def60d87568e72424a49ad
parentb832fb34b3e184df884d32e63bf8be8480eb4e21
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.

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