Parcourir la source

ceph: more informative msgpool errors

Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil il y a 15 ans
Parent
commit
0cf90ab5b0
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      fs/ceph/msgpool.c

+ 2 - 1
fs/ceph/msgpool.c

@@ -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) {
@@ -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);
 		}