aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ceph/msgpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/msgpool.c b/fs/ceph/msgpool.c
index ca3b44a89f2d..030297f62fb7 100644
--- a/fs/ceph/msgpool.c
+++ b/fs/ceph/msgpool.c
@@ -170,7 +170,7 @@ void ceph_msgpool_put(struct ceph_msgpool *pool, struct ceph_msg *msg)
170 msg->front.iov_len = pool->front_len; 170 msg->front.iov_len = pool->front_len;
171 msg->hdr.front_len = cpu_to_le32(pool->front_len); 171 msg->hdr.front_len = cpu_to_le32(pool->front_len);
172 172
173 kref_set(&msg->kref, 1); /* retake a single ref */ 173 kref_init(&msg->kref); /* retake a single ref */
174 list_add(&msg->list_head, &pool->msgs); 174 list_add(&msg->list_head, &pool->msgs);
175 pool->num++; 175 pool->num++;
176 dout("msgpool_put %p reclaim %p, now %d/%d\n", pool, msg, 176 dout("msgpool_put %p reclaim %p, now %d/%d\n", pool, msg,