Messages in this thread | | | Date | Wed, 7 Jan 2009 17:17:45 -0800 | From | Arjan van de Ven <> | Subject | Re: [PATCH 1/7] async: Asynchronous function calls to speed up kernel boot |
| |
On Wed, 7 Jan 2009 22:31:41 -0200 Arnaldo Carvalho de Melo <acme@infradead.org> 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.
| |