aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/msgpool.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-10-14 20:36:07 -0400
committerSage Weil <sage@newdream.net>2009-10-15 21:14:43 -0400
commit8f3bc053c610826a657714649ea596f07875db2e (patch)
tree97823cb2a202439bb9f9839e2d326ac95d728dd0 /fs/ceph/msgpool.h
parent07bd10fb9853a41a7f0bb271721cca97d15eccae (diff)
ceph: warn on allocation from msgpool with larger front_len
Pass the front_len we need when pulling a message off a msgpool, and WARN if it is greater than the pool's size. Then try to allocate a new message (to continue without failing). Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/msgpool.h')
-rw-r--r--fs/ceph/msgpool.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/msgpool.h b/fs/ceph/msgpool.h
index 07a2decaa6d8..bc834bfcd720 100644
--- a/fs/ceph/msgpool.h
+++ b/fs/ceph/msgpool.h
@@ -20,7 +20,8 @@ extern int ceph_msgpool_init(struct ceph_msgpool *pool,
20 int front_len, int size, bool blocking); 20 int front_len, int size, bool blocking);
21extern void ceph_msgpool_destroy(struct ceph_msgpool *pool); 21extern void ceph_msgpool_destroy(struct ceph_msgpool *pool);
22extern int ceph_msgpool_resv(struct ceph_msgpool *, int delta); 22extern int ceph_msgpool_resv(struct ceph_msgpool *, int delta);
23extern struct ceph_msg *ceph_msgpool_get(struct ceph_msgpool *); 23extern struct ceph_msg *ceph_msgpool_get(struct ceph_msgpool *,
24 int front_len);
24extern void ceph_msgpool_put(struct ceph_msgpool *, struct ceph_msg *); 25extern void ceph_msgpool_put(struct ceph_msgpool *, struct ceph_msg *);
25 26
26#endif 27#endif