wait_queue_t wait;
struct ceph_msg *msg;
- msg = ceph_msg_new(0, pool->front_len, 0, 0, NULL);
- if (!IS_ERR(msg))
- return msg;
-
while (1) {
spin_lock(&pool->lock);
if (likely(pool->num)) {
pool->min, pool->blocking ? "waiting" : "failing");
spin_unlock(&pool->lock);
+ WARN_ON(1);
+
+ /* maybe we can allocate it now? */
+ msg = ceph_msg_new(0, pool->front_len, 0, 0, NULL);
+ if (!IS_ERR(msg))
+ return msg;
+
if (!pool->blocking)
return ERR_PTR(-ENOMEM);