Whamcloud - gitweb
. Added an important comment in parse_get()
authoreeb <eeb>
Wed, 7 Jan 2004 20:07:55 +0000 (20:07 +0000)
committereeb <eeb>
Wed, 7 Jan 2004 20:07:55 +0000 (20:07 +0000)
lnet/lnet/lib-move.c
lustre/portals/portals/lib-move.c

index 6e904ba..d844a7a 100644 (file)
@@ -744,6 +744,9 @@ static int parse_get(nal_cb_t * nal, ptl_hdr_t * hdr, void *private)
 
         reply.msg.reply.dst_wmd = hdr->msg.get.return_wmd;
 
 
         reply.msg.reply.dst_wmd = hdr->msg.get.return_wmd;
 
+        /* NB call lib_send() _BEFORE_ lib_recv() completes the incoming
+         * message.  Some NALs _require_ this to implement optimized GET */
+
         rc = lib_send (nal, private, msg, &reply, PTL_MSG_REPLY, 
                        hdr->src_nid, hdr->src_pid, md, offset, mlength);
         if (rc != PTL_OK) {
         rc = lib_send (nal, private, msg, &reply, PTL_MSG_REPLY, 
                        hdr->src_nid, hdr->src_pid, md, offset, mlength);
         if (rc != PTL_OK) {
index 6e904ba..d844a7a 100644 (file)
@@ -744,6 +744,9 @@ static int parse_get(nal_cb_t * nal, ptl_hdr_t * hdr, void *private)
 
         reply.msg.reply.dst_wmd = hdr->msg.get.return_wmd;
 
 
         reply.msg.reply.dst_wmd = hdr->msg.get.return_wmd;
 
+        /* NB call lib_send() _BEFORE_ lib_recv() completes the incoming
+         * message.  Some NALs _require_ this to implement optimized GET */
+
         rc = lib_send (nal, private, msg, &reply, PTL_MSG_REPLY, 
                        hdr->src_nid, hdr->src_pid, md, offset, mlength);
         if (rc != PTL_OK) {
         rc = lib_send (nal, private, msg, &reply, PTL_MSG_REPLY, 
                        hdr->src_nid, hdr->src_pid, md, offset, mlength);
         if (rc != PTL_OK) {