Skip to content

ext4: rewrite I/O submission paths to use bio's directly

Theodore Ts'o linux-ext4 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ext4: call mpage_da_submit_io() from mpage_da_map_blocks()fs/ext4/inode.c+30 -331 reply
2/6ext4: simplify ext4_writepage()fs/ext4/inode.c+25 -480 replies
3/6ext4: inline ext4_writepage() into mpage_da_submit_io()fs/ext4/inode.c+59 -110 replies
4/6ext4: inline walk_page_buffers() into mpage_da_submit_iofs/ext4/inode.c+13 -110 replies
5/6ext4: move mpage_put_bnr_to_bhs()'s functionality to mpage_da_submit_io()fs/ext4/inode.c+37 -990 replies
6/6ext4: use bio layer instead of buffer layer in mpage_da_submit_iofs/ext4/Makefile fs/ext4/ext4.h fs/ext4/extents.c +3 more+419 -1090 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/6] ext4: rewrite I/O submission paths to use bio's directly

This is the first draft of the patches that rewrite ext4's I/O submission paths to use the block I/O layer directly instead of using the buffer layer. This reduces lock contention on the block queue submission layers, and it should reduce CPU usage significantly.

There is still some cleanup and testing to be done, but this should be good enough for benchmarking purposes. This patch series survives xfstests with 4k blocks, and minimal testing with 1k blocks.

- Ted

Theodore Ts'o (6):
ext4: call mpage_da_submit_io() from mpage_da_map_blocks()
ext4: simplify ext4_writepage()
ext4: inline ext4_writepage() into mpage_da_submit_io()
ext4: inline walk_page_buffers() into mpage_da_submit_io
ext4: move mpage_put_bnr_to_bhs()'s functionality to
mpage_da_submit_io()
ext4: use bio layer instead of buffer layer in mpage_da_submit_io

 fs/ext4/Makefile  |    2 +-
 fs/ext4/ext4.h    |   33 ++++-
 fs/ext4/extents.c |    4 +-
 fs/ext4/inode.c   |  429 +++++++++++++++++++----------------------------------
 fs/ext4/page-io.c |  363 ++++++++++++++++++++++++++++++++++++++++++++
 fs/ext4/super.c   |    8 +-
 6 files changed, 555 insertions(+), 284 deletions(-)
 create mode 100644 fs/ext4/page-io.c