Skip to content

Buffered filesystem AIO read/write

Suparna Bhattacharya lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Filesystem AIO readfs/aio.c mm/filemap.c+27 -40 replies
2/2Filesystem AIO writeinclude/linux/aio.h mm/filemap.c+64 -190 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Buffered filesystem AIO read/write
Quoted 10 lines · Suparna Bhattacharya

Since AIO development is gaining momentum once again, ocfs2 and samba both appear to be using AIO, NFS needs async semaphores etc, there appears to be an increase in interest in straightening out some of the pending work in this area. So this seems like a good time to re-post some of those patches for discussion and decision.

Just to help sync up, here is an initial list based on the pieces that have been in progress with patches in existence (please feel free to add/update ones I missed or reflected inaccurately here):

Quoted 10 lines

(1) Updating AIO to use wait-bit based filtered wakeups (me/wli)
Status: Updated to 2.6.12-rc6, needs review
(2) Buffered filesystem AIO read/write (me/Ben)
Status: aio write: Updated to 2.6.12-rc6, needs review
Status: aio read : Needs rework against readahead changes in mainline
...
...
On my part, I'll start by re-posting (1) for discussion, and then move to (2).

Feedback on (1) seems positive so far, so now moving to (2), here are the patches that implement the changes to make filesystem AIO read and write truly asynchronous even without O_DIRECT. With these patches in place it will no longer be necessary for the POSIX AIO library (from Sébastien et al) to force O_DIRECT and memcpy for alignment. (Samba should find this useful)

There are 2 patches: one for buffered filesystem AIO read and the other for buffered filesystem AIO O_SYNC write. These build on the AIO wait bit integration patches posted earlier.

Comments would be appreciated.

The full patchset including (1) and (2) above is available at www.kernel.org/pub/linux/kernel/people/suparna/aio/2612

Regards
Suparna

Signature · 3 lines
Suparna Bhattacharya ([email protected])
Linux Technology Center
IBM Software Lab, India