On Thu, Nov 29, 2012 at 11:43:51PM +0200, Andriy Gapon wrote:
> Hmmm...
> Another bug-catching patch before I start questioning my ability to understand
> the code.
> 
> index 59ecf21..1687c75b 100644
> --- a/sys/contrib/dev/acpica/components/utilities/utcache.c
> +++ b/sys/contrib/dev/acpica/components/utilities/utcache.c
> @@ -238,6 +238,8 @@ AcpiOsReleaseObject (
> 
>      else
>      {
> +        if (AcpiGbl_MutexInfo[ACPI_MTX_CACHES].ThreadId == AcpiOsGetThreadId 
> ())
> +            panic("ACPI_MTX_CACHES acquired recursively");
>          Status = AcpiUtAcquireMutex (ACPI_MTX_CACHES);
>          if (ACPI_FAILURE (Status))
>          {
> @@ -311,6 +313,8 @@ AcpiOsAcquireObject (
>          return (NULL);
>      }
> 
> +    if (AcpiGbl_MutexInfo[ACPI_MTX_CACHES].ThreadId == AcpiOsGetThreadId ())
> +        panic("ACPI_MTX_CACHES acquired recursively");
>      Status = AcpiUtAcquireMutex (ACPI_MTX_CACHES);
>      if (ACPI_FAILURE (Status))
>      {

These checks have not triggered additional panics. I still get the cycle
one.

Stefan
_______________________________________________
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"

Reply via email to