From 190e3718400c9e5a3c2a6e87e80b45cc46139c55 Mon Sep 17 00:00:00 2001 From: shaver Date: Sat, 20 Sep 2003 14:17:44 +0000 Subject: [PATCH] b=1958: call lib_recv when simulating failure in lib_parse, just as we do for all other error-returning cases. Prevents crash when using "lctl> fail _all_" with the socknal. (Patch from Phil.) --- lnet/lnet/lib-move.c | 1 + lustre/portals/portals/lib-move.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lnet/lnet/lib-move.c b/lnet/lnet/lib-move.c index 62db766..f710476 100644 --- a/lnet/lnet/lib-move.c +++ b/lnet/lnet/lib-move.c @@ -1052,6 +1052,7 @@ int lib_parse(nal_cb_t * nal, ptl_hdr_t * hdr, void *private) ": simulated failure\n", nal->ni.nid, hdr_type_string (hdr), hdr->src_nid); + lib_recv (nal, private, NULL, NULL, 0, 0, PTL_HDR_LENGTH (hdr)); return (-1); } diff --git a/lustre/portals/portals/lib-move.c b/lustre/portals/portals/lib-move.c index 62db766..f710476 100644 --- a/lustre/portals/portals/lib-move.c +++ b/lustre/portals/portals/lib-move.c @@ -1052,6 +1052,7 @@ int lib_parse(nal_cb_t * nal, ptl_hdr_t * hdr, void *private) ": simulated failure\n", nal->ni.nid, hdr_type_string (hdr), hdr->src_nid); + lib_recv (nal, private, NULL, NULL, 0, 0, PTL_HDR_LENGTH (hdr)); return (-1); } -- 1.8.3.1