From: Andy Grover Date: Tue, 7 Sep 2010 17:59:44 +0000 (-0700) Subject: RDS/IB: Quiet warnings when leaking frags X-Git-Tag: v4.1.12-92~319^2^2~2^2~63 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4ac0d047bc679d065485526288668e71bc28a33c;p=users%2Fjedix%2Flinux-maple.git RDS/IB: Quiet warnings when leaking frags We have a race where sometimes we leak frags, and it hits the WARN_ON. Unfortunately, the stream of WARN_ONs make the machine unusable. This patch changes to WARN_ON_ONCE so we do not hose the box, and we can still get notifications the bug has occurred. Signed-off-by: Andy Grover Signed-off-by: Chris Mason Signed-off-by: Bang Nguyen --- diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c index 7384140de021..aea5aa2c47a6 100644 --- a/net/rds/ib_recv.c +++ b/net/rds/ib_recv.c @@ -324,7 +324,7 @@ static int rds_ib_recv_refill_one(struct rds_connection *conn, goto out; } - WARN_ON(recv->r_frag); /* leak! */ + WARN_ON_ONCE(recv->r_frag); /* leak! */ recv->r_frag = rds_ib_refill_one_frag(ic, slab_mask, page_mask); if (!recv->r_frag) goto out;