]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: bug on bad msg in msgr
authorSage Weil <sage@newdream.net>
Fri, 25 Sep 2009 23:26:34 +0000 (16:26 -0700)
committerSage Weil <sage@newdream.net>
Mon, 28 Sep 2009 20:51:11 +0000 (13:51 -0700)
src/kernel/messenger.c

index 9409374786705683b00f7ca0150dc40cc7397332..77cf30000f13bcdbc4f9ca6e527c14840cc52170 100644 (file)
@@ -1653,6 +1653,7 @@ void ceph_con_send(struct ceph_connection *con, struct ceph_msg *msg)
 
        /* queue */
        mutex_lock(&con->out_mutex);
+       BUG_ON(!list_empty(&msg->list_head));
        list_add_tail(&msg->list_head, &con->out_queue);
        dout("----- %p to %s%lld %d=%s len %d+%d+%d -----\n", msg,
             ENTITY_NAME(con->peer_name), le16_to_cpu(msg->hdr.type),