From: eeb Date: Wed, 2 Feb 2005 17:17:53 +0000 (+0000) Subject: * 5639 fix by having qswnal detect when portals is discarding X-Git-Tag: 1.3.4~156 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=1594af3f5607cf431d903caa7e90a63dd49e1647;p=fs%2Flustre-release.git * 5639 fix by having qswnal detect when portals is discarding --- diff --git a/lnet/klnds/qswlnd/qswlnd_cb.c b/lnet/klnds/qswlnd/qswlnd_cb.c index fe17e6a..412dca1 100644 --- a/lnet/klnds/qswlnd/qswlnd_cb.c +++ b/lnet/klnds/qswlnd/qswlnd_cb.c @@ -1718,6 +1718,11 @@ kqswnal_recvmsg (lib_nal_t *nal, CDEBUG(D_NET,"kqswnal_recv, mlen="LPSZ", rlen="LPSZ"\n", mlen, rlen); + if (libmsg == NULL) { /* portals is discarding. */ + LASSERT (mlen == 0); + return PTL_OK; /* ignored by caller! */ + } + if (krx->krx_rpc_reply_needed && hdr->type == PTL_MSG_PUT) { /* This must be an optimized PUT */