From: Sage Weil Date: Fri, 25 Sep 2009 23:26:34 +0000 (-0700) Subject: kclient: bug on bad msg in msgr X-Git-Tag: v0.16~65^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=78648b2004ac8dca110733b94a1c97b794bb3ebf;p=ceph.git kclient: bug on bad msg in msgr --- diff --git a/src/kernel/messenger.c b/src/kernel/messenger.c index 9409374786705..77cf30000f13b 100644 --- a/src/kernel/messenger.c +++ b/src/kernel/messenger.c @@ -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),