]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
xio: safely clean up transport messages with valid connection
authorVu Pham <vu@mellanox.com>
Wed, 15 Jul 2015 23:20:00 +0000 (16:20 -0700)
committerVu Pham <vu@mellanox.com>
Tue, 21 Jul 2015 18:43:43 +0000 (11:43 -0700)
Transport messages can be safely and completely cleaned up as
long as low level connection is valid

Signed-off-by: Vu Pham <vu@mellanox.com>
src/msg/xio/XioPortal.h

index a32b2e299ca37bf732cefc25364204fd5a787577..cb711c66d24cef6557ac8d5c1596fecd402b1681 100644 (file)
@@ -159,7 +159,7 @@ public:
     struct xio_msg *msg = xrsp->dequeue();
     struct xio_msg *next_msg = NULL;
     int code;
-    if (unlikely(!xrsp->xcon->conn || !xrsp->xcon->is_connected())) {
+    if (unlikely(!xrsp->xcon->conn)) {
       // NOTE: msg is not safe to dereference if the connection was torn down
       xrsp->xcon->msg_release_fail(msg, ENOTCONN);
     }