On Tue, 6 Feb 2001, Linus Torvalds wrote: > > > On Tue, 6 Feb 2001, Manfred Spraul wrote: > > Jens Axboe wrote: > > > > > > > Several kernel functions need a "dontblock" parameter (or a callback, or > > > > a waitqueue address, or a tq_struct pointer). > > > > > > We don't even need that, non-blocking is implicitly applied with READA. > > > > > READA just returns - I doubt that the aio functions should poll until > > there are free entries in the request queue. > > The aio functions should NOT use READA/WRITEA. They should just use the > normal operations, waiting for requests. The things that makes them > asycnhronous is not waiting for the requests to _complete_. Which you can > already do, trivially enough. Reading write(2): EAGAIN Non-blocking I/O has been selected using O_NONBLOCK and there was no room in the pipe or socket connected to fd to write the data immediately. I see no reason why "aio function have to block waiting for requests". _Why_ they do ? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Ingo Molnar
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Jens Axboe
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Ben LaHaise
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Manfred Spraul
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Jens Axboe
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Manfred Spraul
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Manfred Spraul
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Andre Hedrick
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Marcelo Tosatti
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Jens Axboe
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Marcelo Tosatti
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Linus Torvalds
- select() returning busy for regular files [was Re: [Kiobuf... Pavel Machek
- Re: select() returning busy for regular files [was Re: [Ki... Ben LaHaise
- Re: select() returning busy for regular files [was Re: [Ki... Linus Torvalds
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Ben LaHaise
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Marcelo Tosatti
- Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound even... Marcelo Tosatti