From cc4ea0b46dbb746e0c3a8da09b9480b850a0c421 Mon Sep 17 00:00:00 2001 From: jkoshy Date: Thu, 9 Mar 2006 02:08:12 +0000 Subject: When a process is de-configuring a log file, also stop all of its PMCs that require a log file to operate. This change should fix PR 90269. PR: kern/90269 MFC after: 1 week --- sys/dev/hwpmc/hwpmc_logging.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/dev/hwpmc/hwpmc_logging.c') diff --git a/sys/dev/hwpmc/hwpmc_logging.c b/sys/dev/hwpmc/hwpmc_logging.c index ff6298e..f901cbe 100644 --- a/sys/dev/hwpmc/hwpmc_logging.c +++ b/sys/dev/hwpmc/hwpmc_logging.c @@ -619,10 +619,8 @@ pmclog_deconfigure_log(struct pmc_owner *po) if ((po->po_flags & PMC_PO_OWNS_LOGFILE) == 0) return EINVAL; - /* remove this owner from the global SS pmc owner list */ - if (po->po_sscount) - LIST_REMOVE(po, po_ssnext); - + KASSERT(po->po_sscount == 0, + ("[pmc,%d] po=%p still owning SS PMCs", __LINE__, po)); KASSERT(po->po_file != NULL, ("[pmc,%d] po=%p no log file", __LINE__, po)); -- cgit v1.1