]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
xio: refactor flush_input_queue -> flush_out_queues
authorAvner BenHanoch <avnerb@mellanox.com>
Mon, 11 Apr 2016 11:26:40 +0000 (14:26 +0300)
committerAvner BenHanoch <avnerb@mellanox.com>
Tue, 12 Apr 2016 12:21:28 +0000 (15:21 +0300)
avoid misleading names

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

index 8558b51b3c1b3bc879e7414a29332b4f598697fa..091dc4e143f6007ab6ff6c9ebc50922736ecabfc 100644 (file)
@@ -477,7 +477,7 @@ void XioConnection::msg_release_fail(struct xio_msg *msg, int code)
     " (" << xio_strerror(code) << ")" << dendl;
 } /* msg_release_fail */
 
-int XioConnection::flush_input_queue(uint32_t flags) {
+int XioConnection::flush_out_queues(uint32_t flags) {
   XioMessenger* msgr = static_cast<XioMessenger*>(get_messenger());
   if (! (flags & CState::OP_FLAG_LOCKED))
     pthread_spin_lock(&sp);
@@ -640,7 +640,7 @@ int XioConnection::CState::state_up_ready(uint32_t flags)
   if (! (flags & CState::OP_FLAG_LOCKED))
     pthread_spin_lock(&xcon->sp);
 
-  xcon->flush_input_queue(flags|CState::OP_FLAG_LOCKED);
+  xcon->flush_out_queues(flags|CState::OP_FLAG_LOCKED);
 
   session_state.set(UP);
   startup_state.set(READY);
index e19b3f5dfdb6e8b505e86e02f27079642cee92d0..e55ea983197ece090332980458adc0f5d544130b 100644 (file)
@@ -319,7 +319,7 @@ public:
                   struct xio_msg  *msg, void *conn_user_context);
   void msg_send_fail(XioMsg *xmsg, int code);
   void msg_release_fail(struct xio_msg *msg, int code);
-  int flush_input_queue(uint32_t flags);
+  int flush_out_queues(uint32_t flags);
   int discard_input_queue(uint32_t flags);
   int adjust_clru(uint32_t flags);
 };