lkml.org 
[lkml]   [2009]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.


\
 
 \ /
  Last update: 2009-01-08 02:19    [W:1.100 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site