summaryrefslogtreecommitdiffstats
path: root/fs/ceph/msgpool.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-12-07 15:55:05 -0800
committerSage Weil <sage@newdream.net>2009-12-07 15:55:05 -0800
commitc2e552e76e2c6907ca50cd9a4b747a2e2e8c615e (patch)
tree4251e189caeb4de3f4a8763ae70600fc9d3acb51 /fs/ceph/msgpool.c
parent415e49a9c4faf1a1480b1497da2037608e5aa2c5 (diff)
ceph: use kref for ceph_msg
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/msgpool.c')
-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 7599b338207..ad5482c0267 100644
--- a/fs/ceph/msgpool.c
+++ b/fs/ceph/msgpool.c
@@ -165,7 +165,7 @@ void ceph_msgpool_put(struct ceph_msgpool *pool, struct ceph_msg *msg)
{
spin_lock(&pool->lock);
if (pool->num < pool->min) {
- ceph_msg_get(msg); /* retake a single ref */
+ kref_set(&msg->kref, 1); /* retake a single ref */
list_add(&msg->list_head, &pool->msgs);
pool->num++;
dout("msgpool_put %p reclaim %p, now %d/%d\n", pool, msg,