PERFORCE change 188272 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Fri Jan 28 18:28:30 UTC 2011
http://p4web.freebsd.org/@@188272?ac=10
Change 188272 by trasz at trasz_victim on 2011/01/28 18:27:45
Remove ugly hack that stopped being useful for debugging some time
ago and fix descriptions in a few KASSERTs.
Affected files ...
.. //depot/projects/soc2009/trasz_limits/sys/kern/kern_rctl.c#20 edit
.. //depot/projects/soc2009/trasz_limits/sys/sys/rctl.h#9 edit
Differences ...
==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_rctl.c#20 (text+ko) ====
@@ -684,7 +684,7 @@
rctl_rule_acquire(struct rctl_rule *rule)
{
- KASSERT(rule->rr_refcount > 0, ("rule->rr_refcount > 0"));
+ KASSERT(rule->rr_refcount > 0, ("rule->rr_refcount <= 0"));
refcount_acquire(&rule->rr_refcount);
}
@@ -696,7 +696,7 @@
rule = (struct rctl_rule *)context;
- KASSERT(rule->rr_refcount == 0, ("rule->rr_refcount == 0"));
+ KASSERT(rule->rr_refcount == 0, ("rule->rr_refcount != 0"));
/*
* We don't need locking here; rule is guaranteed to be inaccessible.
@@ -710,7 +710,7 @@
rctl_rule_release(struct rctl_rule *rule)
{
- KASSERT(rule->rr_refcount > 0, ("rule->rr_refcount > 0"));
+ KASSERT(rule->rr_refcount > 0, ("rule->rr_refcount <= 0"));
if (refcount_release(&rule->rr_refcount)) {
/*
@@ -1656,7 +1656,7 @@
if (rule == NULL)
goto fail;
KASSERT(rule->rr_subject.rs_proc == parent,
- ("rule->rr_subject.rs_proc == parent"));
+ ("rule->rr_subject.rs_proc != parent"));
rule->rr_subject.rs_proc = child;
error = rctl_container_add_rule_locked(child->p_container, rule);
rctl_rule_release(rule);
==== //depot/projects/soc2009/trasz_limits/sys/sys/rctl.h#9 (text+ko) ====
@@ -69,11 +69,7 @@
*/
struct rctl_rule {
int rr_subject_type;
-#ifdef DIAGNOSTIC
- struct {
-#else
union {
-#endif
struct proc *rs_proc;
struct uidinfo *rs_uip;
struct loginclass *hr_loginclass;
More information about the p4-projects
mailing list