]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
RDS/IB: Quiet warnings when leaking frags
authorAndy Grover <andy.grover@oracle.com>
Tue, 7 Sep 2010 17:59:44 +0000 (10:59 -0700)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 23:41:27 +0000 (16:41 -0700)
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 <andy.grover@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Bang Nguyen <bang.nguyen@oracle.com>
net/rds/ib_recv.c

index 7384140de02191b7d0311553f213170acb672b34..aea5aa2c47a6892aead151e7b57d0c8f83303f06 100644 (file)
@@ -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;