diff options
author | Sage Weil <sage@newdream.net> | 2009-12-07 15:55:05 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-12-07 15:55:05 -0800 |
commit | c2e552e76e2c6907ca50cd9a4b747a2e2e8c615e (patch) | |
tree | 4251e189caeb4de3f4a8763ae70600fc9d3acb51 /fs/ceph/msgpool.c | |
parent | 415e49a9c4faf1a1480b1497da2037608e5aa2c5 (diff) | |
download | linux-c2e552e76e2c6907ca50cd9a4b747a2e2e8c615e.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/msgpool.c b/fs/ceph/msgpool.c index 7599b3382076..ad5482c0267b 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, |