]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
xio: refactor release_xio_req -> release_xio_msg 8555/head
authorAvner BenHanoch <avnerb@mellanox.com>
Mon, 11 Apr 2016 11:29:47 +0000 (14:29 +0300)
committerAvner BenHanoch <avnerb@mellanox.com>
Tue, 12 Apr 2016 12:21:28 +0000 (15:21 +0300)
avoid names that are misleading with accelio's terminology
(msg - is one way notification, req - is 2 ways notification)

Signed-off-by: Avner BenHanoch <avnerb@mellanox.com>
src/msg/xio/XioConnection.cc
src/msg/xio/XioPortal.h

index 091dc4e143f6007ab6ff6c9ebc50922736ecabfc..544fd8fafdc02562aa2996ff7a20ff6e170a25df 100644 (file)
@@ -542,7 +542,7 @@ int XioConnection::discard_input_queue(uint32_t flags)
        break;
       case XioSubmit::INCOMING_MSG_RELEASE:
        deferred_q.erase(q_iter);
-       portal->release_xio_rsp(static_cast<XioRsp*>(xs));
+       portal->release_xio_msg(static_cast<XioRsp*>(xs));
        break;
       default:
        ldout(msgr->cct,0) << __func__ << ": Unknown Msg type " << xs->type << dendl;
index 04e16d22a7e940ba08416d81fb2a4d1e738ab8bb..344e96dcc8ea162f2d5e4f10b4a2cf2fce25a536 100644 (file)
@@ -157,7 +157,7 @@ public:
   int bind(struct xio_session_ops *ops, const string &base_uri,
           uint16_t port, uint16_t *assigned_port);
 
-  inline void release_xio_rsp(XioRsp* xrsp) {
+  inline void release_xio_msg(XioRsp* xrsp) {
     struct xio_msg *msg = xrsp->dequeue();
     struct xio_msg *next_msg = NULL;
     int code;
@@ -193,7 +193,7 @@ public:
        break;
       default:
        /* INCOMING_MSG_RELEASE */
-       release_xio_rsp(static_cast<XioRsp*>(xs));
+       release_xio_msg(static_cast<XioRsp*>(xs));
       break;
       };
     }
@@ -321,7 +321,7 @@ public:
            default:
              /* INCOMING_MSG_RELEASE */
              q_iter = send_q.erase(q_iter);
-             release_xio_rsp(static_cast<XioRsp*>(xs));
+             release_xio_msg(static_cast<XioRsp*>(xs));
              continue;
            } /* switch (xs->type) */
            q_iter = send_q.erase(q_iter);