Re: [patch 05/14] syslets: core code

2007-02-16 Thread Davide Libenzi
On Thu, 15 Feb 2007, Ingo Molnar wrote: > + spin_lock(>lock); > + > + new_async_thread = pick_ready_cachemiss_thread(ah); > + if (!new_async_thread) > + goto out_unlock; > + > + async_ready = t->async_ready; > + WARN_ON(!async_ready); > + t->async_ready = NULL;

Re: [patch 05/14] syslets: core code

2007-02-16 Thread Davide Libenzi
On Thu, 15 Feb 2007, Ingo Molnar wrote: + spin_lock(ah-lock); + + new_async_thread = pick_ready_cachemiss_thread(ah); + if (!new_async_thread) + goto out_unlock; + + async_ready = t-async_ready; + WARN_ON(!async_ready); + t-async_ready = NULL; + +

Re: [patch 05/14] syslets: core code

2007-02-15 Thread Frederik Deweerdt
On Thu, Feb 15, 2007 at 05:52:28PM +0100, Ingo Molnar wrote: > From: Ingo Molnar <[EMAIL PROTECTED]> > +static struct syslet_uatom __user * > +exec_atom(struct async_head *ah, struct task_struct *t, > + struct syslet_uatom __user *uatom) > +{ > + struct syslet_uatom __user *last_uatom; >

Re: [patch 05/14] syslets: core code

2007-02-15 Thread Zach Brown
+static void +__mark_async_thread_ready(struct async_thread *at, struct async_head *ah) +{ + list_del(>entry); + list_add_tail(>entry, >ready_async_threads); +__mark_async_thread_busy(struct async_thread *at, struct async_head *ah) +{ + list_del(>entry); +

[patch 05/14] syslets: core code

2007-02-15 Thread Ingo Molnar
From: Ingo Molnar <[EMAIL PROTECTED]> the core syslet / async system calls infrastructure code. Is built only if CONFIG_ASYNC_SUPPORT is enabled. Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]> Signed-off-by: Arjan van de Ven <[EMAIL PROTECTED]> --- kernel/Makefile |1 kernel/async.c |

[patch 05/14] syslets: core code

2007-02-15 Thread Ingo Molnar
From: Ingo Molnar [EMAIL PROTECTED] the core syslet / async system calls infrastructure code. Is built only if CONFIG_ASYNC_SUPPORT is enabled. Signed-off-by: Ingo Molnar [EMAIL PROTECTED] Signed-off-by: Arjan van de Ven [EMAIL PROTECTED] --- kernel/Makefile |1 kernel/async.c | 897

Re: [patch 05/14] syslets: core code

2007-02-15 Thread Zach Brown
+static void +__mark_async_thread_ready(struct async_thread *at, struct async_head *ah) +{ + list_del(at-entry); + list_add_tail(at-entry, ah-ready_async_threads); +__mark_async_thread_busy(struct async_thread *at, struct async_head *ah) +{ + list_del(at-entry); +

Re: [patch 05/14] syslets: core code

2007-02-15 Thread Frederik Deweerdt
On Thu, Feb 15, 2007 at 05:52:28PM +0100, Ingo Molnar wrote: From: Ingo Molnar [EMAIL PROTECTED] +static struct syslet_uatom __user * +exec_atom(struct async_head *ah, struct task_struct *t, + struct syslet_uatom __user *uatom) +{ + struct syslet_uatom __user *last_uatom; +