Whamcloud - gitweb
LU-15618 lnet: Return ESHUTDOWN in lnet_parse()
authorChris Horn <chris.horn@hpe.com>
Thu, 3 Mar 2022 07:12:32 +0000 (01:12 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 23 Sep 2022 16:42:26 +0000 (16:42 +0000)
commit531c9dea6bbc30ad43a861b91ad1d56d248956df
tree6716d7fd0759a1cc83b729f99ecf97d8f2a45945
parent4b14d9fb00214abffcbe96a5c0759108d194cbf8
LU-15618 lnet: Return ESHUTDOWN in lnet_parse()

If the peer NI lookup in lnet_parse() fails with ESHUTDOWN then we
should return that value back to the LNDs so that they can treat the
failed call the same way as other lnet_parse() failures.

Returning zero results in at least one bug in socklnd where a
reference on a ksock_conn can be leaked which prevents socklnd from
shutting down.

Lustre-change: https://review.whamcloud.com/46711
Lustre-commit: 4fbd0705a3d25bbc85e953f81e697e5006b215ce

Fixes: 47b7b31978 ("LU-8106 lnet: Do not drop message when shutting down LNet")
Test-Parameters: trivial testlist=sanity-lnet
HPE-bug-id: LUS-15794
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: Ic403619c6dccf3921c46a674808c404adad7a30e
Reviewed-on: https://review.whamcloud.com/48485
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/lnet/lib-move.c