Skip to content

Commit

Permalink
ceph: more informative msgpool errors
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil committed Dec 23, 2009
1 parent 350b1c3 commit 0cf90ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/ceph/msgpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ struct ceph_msg *ceph_msgpool_get(struct ceph_msgpool *pool, int front_len)
return msg;
}
pr_err("msgpool_get %p now %d/%d, %s\n", pool, pool->num,
pool->min, pool->blocking ? "waiting" : "failing");
pool->min, pool->blocking ? "waiting" : "may fail");
spin_unlock(&pool->lock);

if (!pool->blocking) {
Expand All @@ -151,6 +151,7 @@ struct ceph_msg *ceph_msgpool_get(struct ceph_msgpool *pool, int front_len)
if (!IS_ERR(msg))
return msg;

pr_err("msgpool_get %p empty + alloc failed\n", pool);
return ERR_PTR(-ENOMEM);
}

Expand Down

0 comments on commit 0cf90ab

Please sign in to comment.