Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jan 2011 13:04:12 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 187657 for review
Message-ID:  <201101101304.p0AD4CcN069270@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@187657?ac=10

Change 187657 by trasz@trasz_victim on 2011/01/10 13:03:54

	Fix assertion.

Affected files ...

.. //depot/projects/soc2009/trasz_limits/sys/kern/kern_container.c#50 edit

Differences ...

==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_container.c#50 (text+ko) ====

@@ -211,8 +211,12 @@
 		}
 		if (container_resource_reclaimable(i)) {
 			dest->c_resources[i] -= src->c_resources[i];
-			if (dest->c_resources[i] < 0)
+			if (dest->c_resources[i] < 0) {
+				KASSERT(container_resource_sloppy(i) ||
+				    container_resource_dampened(i),
+				    ("container_sub: usage < 0"));
 				dest->c_resources[i] = 0;
+			}
 		}
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101101304.p0AD4CcN069270>