diff options
author | Sage Weil <sage@newdream.net> | 2009-12-22 13:45:18 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-12-23 11:17:21 -0500 |
commit | 0cf90ab5b075821940873e73cdbfeb8edc3dabe8 (patch) | |
tree | 5388f009481026c6926a555fe0e2d378e346776e | |
parent | 350b1c32ea58d29e25d63fc25e92dd48f9339546 (diff) |
ceph: more informative msgpool errors
Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r-- | fs/ceph/msgpool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/msgpool.c b/fs/ceph/msgpool.c index ad5482c0267b..2f04e0fc4666 100644 --- a/fs/ceph/msgpool.c +++ b/fs/ceph/msgpool.c | |||
@@ -140,7 +140,7 @@ struct ceph_msg *ceph_msgpool_get(struct ceph_msgpool *pool, int front_len) | |||
140 | return msg; | 140 | return msg; |
141 | } | 141 | } |
142 | pr_err("msgpool_get %p now %d/%d, %s\n", pool, pool->num, | 142 | pr_err("msgpool_get %p now %d/%d, %s\n", pool, pool->num, |
143 | pool->min, pool->blocking ? "waiting" : "failing"); | 143 | pool->min, pool->blocking ? "waiting" : "may fail"); |
144 | spin_unlock(&pool->lock); | 144 | spin_unlock(&pool->lock); |
145 | 145 | ||
146 | if (!pool->blocking) { | 146 | if (!pool->blocking) { |
@@ -151,6 +151,7 @@ struct ceph_msg *ceph_msgpool_get(struct ceph_msgpool *pool, int front_len) | |||
151 | if (!IS_ERR(msg)) | 151 | if (!IS_ERR(msg)) |
152 | return msg; | 152 | return msg; |
153 | 153 | ||
154 | pr_err("msgpool_get %p empty + alloc failed\n", pool); | ||
154 | return ERR_PTR(-ENOMEM); | 155 | return ERR_PTR(-ENOMEM); |
155 | } | 156 | } |
156 | 157 | ||