Whamcloud - gitweb
LU-12678 ptlrpc: remove bogus LASSERT 21/45421/3
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 30 Oct 2021 00:40:40 +0000 (18:40 -0600)
committerOleg Drokin <green@whamcloud.com>
Sat, 20 Nov 2021 06:27:29 +0000 (06:27 +0000)
commit49769c1eea52e067d6c2d35b2976f44aada1ccee
tree885497decf7f60bced2a01f4829ec9ab79a93dd4
parent63d4d9ff2f5c8cc992ca6b2f698bb43a3257bfb3
LU-12678 ptlrpc: remove bogus LASSERT

In the error case, it isn't possible for rc to be both -ENOMEM and
0 at the same time, so remove the incorrect LASSERT(rc == 0) to
avoid crashing the system on an allocation failure.

Improve error messages to conform to code style.

Fixes: ceeeae4271fd ("LU-12678 lnet: me: discard struct lnet_handle_me")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I61ac5d735d7b2658dae76213a2d40cbfd2bb8bb9
Reviewed-on: https://review.whamcloud.com/45421
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/niobuf.c