http://defect.opensolaris.org/bz/show_bug.cgi?id=4343


Aubrey.Li <aubrey.li at intel.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CAUSEKNOWN                  |FIXINPROGRESS




--- Comment #9 from Aubrey.Li <aubrey.li at intel.com>  2008-11-06 06:31:11 ---
(In reply to comment #5)
> Here's a patch that I think should work...
> I'm fixing this in the same wad as 4202 (which I'm testing)...
> 
>  static void
>  cmt_hier_promote(pg_cmt_t *pg)
>  {
> @@ -276,15 +314,16 @@
>          */
>         pause_cpus(NULL);
> 
> -       children = pg->cmt_children;
>         /*
> -        * Update the parent reference in the children of the PG
> +        * Update the parent reference in any children of the PG
>          * being promoted.
>          */
> -       group_iter_init(&iter);
> -       while ((child = group_iterate(children, &iter)) != NULL) {
> -               ASSERT(child->cmt_parent == pg);
> -               child->cmt_parent = parent;
> +       if ((children = pg->cmt_children) != NULL) {
> +               group_iter_init(&iter);
> +               while ((child = group_iterate(children, &iter)) != NULL) {
> +                       ASSERT(child->cmt_parent == pg);
> +                       child->cmt_parent = parent;
> +               }
>         }

The patch seems to work, please commit.

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Reply via email to