Whamcloud - gitweb
* 5639 fix by having qswnal detect when portals is discarding
authoreeb <eeb>
Wed, 2 Feb 2005 17:17:53 +0000 (17:17 +0000)
committereeb <eeb>
Wed, 2 Feb 2005 17:17:53 +0000 (17:17 +0000)
lnet/klnds/qswlnd/qswlnd_cb.c

index fe17e6a..412dca1 100644 (file)
@@ -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 */