Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michael K. Edwards
Date: Friday, February 23, 2007 - 4:49 pm

On 2/23/07, Alan <alan@lxorguk.ukuu.org.uk> wrote:

Blocked threadlets go back out to userspace, as new threads, after the
first blocking syscall completes.  That's how Ingo described them in
plain English, that's how his threadlet example would have to work,
and that appears to be what his patches actually do.


Y'know, there's more to life than x86.  I'm no MMU expert, but I know
enough about ARM TLS and ptrace to have fixed ltrace -- not that that
took any special wizardry, just a need for it to work and some basic
forensic skill.  If you want me to go away completely or not follow up
henceforth on anything you write, say so, and I'll decide what to do
in response.  Otherwise, you might consider evaluating whether there's
a way to interpret my comments so that they reflect a perspective that
does not overlap 100% with yours rather than total idiocy.


Ingo's original example code:

long my_threadlet_fn(void *data)
{
       char *name = data;
       int fd;

       fd = open(name, O_RDONLY);
       if (fd < 0)
               goto out;

       fstat(fd, &stat);
       read(fd, buf, count)
       ...

out:
       return threadlet_complete();
}

You're telling me that runs entirely in kernel space when open()
blocks, and doesn't touch errno if fstat() fails?  Now who hasn't read
the code?

Cheers,
- Michael
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 03/13] syslets: generic kernel bits, Ingo Molnar, (Wed Feb 21, 2:15 pm)
[patch 04/13] syslets: core code, Ingo Molnar, (Wed Feb 21, 2:15 pm)
[patch 05/13] syslets: core, documentation, Ingo Molnar, (Wed Feb 21, 2:15 pm)
[patch 06/13] x86: split FPU state from task state, Ingo Molnar, (Wed Feb 21, 2:15 pm)
[patch 09/13] syslets: x86, mark async unsafe syscalls, Ingo Molnar, (Wed Feb 21, 2:15 pm)
[patch 10/13] syslets: x86: enable ASYNC_SUPPORT, Ingo Molnar, (Wed Feb 21, 2:15 pm)
[patch 12/13] syslets: x86: optimized copy_uatom(), Ingo Molnar, (Wed Feb 21, 2:15 pm)
[patch 13/13] syslets: x86: optimized sys_umem_add(), Ingo Molnar, (Wed Feb 21, 2:16 pm)
Re: x86 hardware and transputers (Re: [patch 00/13] Syslet ..., Michael K. Edwards, (Thu Feb 22, 1:45 pm)
Re: A quick fio test (was Re: [patch 00/13] Syslets, &quot;Thre ..., Suparna Bhattacharya, (Fri Feb 23, 6:55 am)
Re: A quick fio test (was Re: [patch 00/13] Syslets, &quot;Thre ..., Suparna Bhattacharya, (Fri Feb 23, 8:15 am)
Re: A quick fio test (was Re: [patch 00/13] Syslets, &quot;Thre ..., Suparna Bhattacharya, (Fri Feb 23, 10:13 am)
Re: [patch 04/13] syslets: core code, Davide Libenzi, (Fri Feb 23, 4:08 pm)
Re: [patch 00/13] Syslets, "Threadlets", generic AIO suppo ..., Michael K. Edwards, (Fri Feb 23, 4:49 pm)
Re: [patch 04/13] syslets: core code, Ingo Molnar, (Sat Feb 24, 12:04 am)
[patchset] Syslets/threadlets, generic AIO support, v4, Ingo Molnar, (Sat Feb 24, 12:41 am)
Re: [patch 04/13] syslets: core code, Davide Libenzi, (Sat Feb 24, 2:10 pm)
Re: [patch 04/13] syslets: core code, Kyle Moffett, (Sat Feb 24, 3:08 pm)
Re: [patch 04/13] syslets: core code, Davide Libenzi, (Sat Feb 24, 3:25 pm)
Re: [patch 04/13] syslets: core code, Ingo Molnar, (Sun Feb 25, 12:59 am)
Threadlet/syslet v4 bug report., Evgeniy Polyakov, (Sun Feb 25, 7:33 am)
Re: A quick fio test (was Re: [patch 00/13] Syslets, &quot;Thre ..., Suparna Bhattacharya, (Mon Feb 26, 7:13 am)
Re: [patch 05/13] syslets: core, documentation, Randy Dunlap, (Mon Feb 26, 2:32 pm)
Re: A quick fio test (was Re: [patch 00/13] Syslets, &quot;Thre ..., Suparna Bhattacharya, (Mon Feb 26, 9:33 pm)
Re: [patch 05/13] syslets: core, documentation, Ingo Molnar, (Mon Feb 26, 11:20 pm)
Re: A quick fio test (was Re: [patch 00/13] Syslets, &quot;Thre ..., Suparna Bhattacharya, (Tue Feb 27, 5:39 am)