Re: [PATCH 1/7] async: Asynchronous function calls to speed upkernel boot

From: Arjan van de Ven
Date: Wed Jan 07 2009 - 20:15:57 EST


On Wed, 7 Jan 2009 22:31:41 -0200
Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxx> wrote:

> Small nitpick:
>
> - > + return entry->cookie;
> > + } else if (!list_empty(running)) {
> > + entry = list_first_entry(running,
> > + struct async_entry, list);
> - > + return entry->cookie;
> > + } else {
> > + /* nothing in progress... next_cookie is
> > "infinity" */
> > + return next_cookie;
> > + }
>
> + return entry->cookie;

no you cannot do this; entry can be freed by this time already from a
thread.
--
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/