Re: Suspend2 merge preparation: Rationale behind the freezer changes.

From: Oliver Neukum
Date: Fri May 21 2004 - 12:14:44 EST


Am Freitag, 21. Mai 2004 19:08 schrieben Sie:
> Hi!
>
> > > > Kernel threads are different, and each must be handled separately,
> > > > maybe even with some ordering. But there's relatively small number of
> > > > kernel threads...
> > >
> > > Yes, but what order? I played with that problem for ages. Perhaps I just
> > >   didn't find the right combination.
> >
> > How about recording the order of creation and do it in opposite order?
>
> Order of creation is pretty much hidden in pid, but I do not think
> that will work.

Why? Build a list during kernel thread creation. It is not a hot code path.

Regards
Oliver
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/