On Tue, 6 Feb 2007, Kent Overstreet wrote: > The trouble with differentiating between calls that block and calls > that don't is you completely loose the ability to batch syscalls > together; this is potentially a major win of an asynchronous > interface. It doesn't necessarly have to, once you extend the single return code to a vector: struct async_submit { void *cookie; int sysc_nbr; int nargs; long args[ASYNC_MAX_ARGS]; int async_result; }; int async_submit(struct async_submit *a, int n); And async_submit() can mark each one ->async_result with -EASYNC (syscall has been batched), or another code (syscall completed w/out schedule). IMO, once you get a -EASYNC for a syscall, you *have* to retire the result. - Davide - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Joel Becker <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- References:
- [PATCH 0 of 4] Generic AIO by scheduling stacks
- From: Zach Brown <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Ingo Molnar <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Zach Brown <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Davide Libenzi <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Zach Brown <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Davide Libenzi <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Davide Libenzi <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: "Kent Overstreet" <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- From: "Kent Overstreet" <[email protected]>
- [PATCH 0 of 4] Generic AIO by scheduling stacks
- Prev by Date: Re: [PATCH 2/11] Sched clock paravirt op
- Next by Date: [PATCH] Re: Bio device too big | kernel BUG at mm/filemap.c:537!
- Previous by thread: Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- Next by thread: Re: [PATCH 2 of 4] Introduce i386 fibril scheduling
- Index(es):