Skip to content

Per-bdi writeback flusher threads #2

Jens Axboe linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Move the default_backing_dev_info out of readahead.c and into backing-dev.cmm/backing-dev.c mm/readahead.c+25 -260 replies
2/12btrfs: get rid of current_is_pdflush() in btrfs_btree_balance_dirtyfs/btrfs/disk-io.c+1 -10 replies
3/12Get rid of pdflush_operation() in emergency sync and remountfs/super.c fs/sync.c+22 -30 replies
4/12writeback: move dirty inodes from super_block to backing_dev_infofs/fs-writeback.c fs/super.c include/linux/backing-dev.h +3 more+156 -780 replies
5/12writeback: switch to per-bdi threads for flushing datafs/buffer.c fs/fs-writeback.c fs/ntfs/super.c +7 more+414 -2993 replies
6/12writeback get rid of pdflush completelyfs/fs-writeback.c include/linux/writeback.h mm/Makefile +1 more+6 -2640 replies
7/12writeback: separate the flushing state/task from the bdifs/fs-writeback.c include/linux/backing-dev.h mm/backing-dev.c+258 -1450 replies
8/12writeback: support > 1 flusher thread per bdifs/fs-writeback.c include/linux/backing-dev.h include/linux/fs.h +1 more+151 -150 replies
9/12writeback: include default_backing_dev_info in writebackfs/fs-writeback.c include/linux/backing-dev.h include/linux/writeback.h +1 more+62 -390 replies
10/12writeback: add some debug inode list counters to bdi statsmm/backing-dev.c+22 -20 replies
11/12writeback: add name to backing_dev_infoblock/blk-core.c drivers/block/aoe/aoeblk.c drivers/char/mem.c +14 more+18 -00 replies
12/12writeback: check for registered bdi in flusher addinclude/linux/backing-dev.h mm/backing-dev.c+7 -00 replies

Reviews trailers per patch

1 of 12 patches has a Reviewed-by or Acked-by.

PatchChris Mason
1/12
2/12A-b
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/12] Per-bdi writeback flusher threads #2

Hi,

Second version of this patchset. Changes since last time:

- Rearranged the obvious and prep patches to be at the beginning of the series. That's patches 1-3, they will go upstream for 2.6.30 since they are just cleanups.

- The other change is more interesting. It adds support for > 1 flusher thread per bdi. Comments welcome, I'm particularly curious whether the super_operation is the right place to add this or not. We'll also need a few other changes, particularly I think that users of this will want to provide their own generic_sync_wb_inodes() at least. Probably along with their own variants of queue_io/requeue_io/redirty_tail() and so on.

- Various little bug fixes.

 b/block/blk-core.c            |    1 
 b/drivers/block/aoe/aoeblk.c  |    1 
 b/drivers/char/mem.c          |    1 
 b/fs/btrfs/disk-io.c          |    3 
 b/fs/buffer.c                 |    2 
 b/fs/char_dev.c               |    1 
 b/fs/configfs/inode.c         |    1 
 b/fs/fs-writeback.c           |  490 +++++++++++++++++++++++-----------
 b/fs/fuse/inode.c             |    1 
 b/fs/hugetlbfs/inode.c        |    1 
 b/fs/nfs/client.c             |    1 
 b/fs/ntfs/super.c             |   32 --
 b/fs/ocfs2/dlm/dlmfs.c        |    1 
 b/fs/ramfs/inode.c            |    1 
 b/fs/super.c                  |   14 
 b/fs/sync.c                   |   16 -
 b/fs/sysfs/inode.c            |    1 
 b/fs/ubifs/super.c            |    1 
 b/include/linux/backing-dev.h |   62 ++++
 b/include/linux/fs.h          |   11 
 b/include/linux/writeback.h   |   15 -
 b/kernel/cgroup.c             |    1 
 b/mm/Makefile                 |    2 
 b/mm/backing-dev.c            |  429 +++++++++++++++++++++++++++++
 b/mm/page-writeback.c         |  140 ---------
 mm/pdflush.c                  |  251 -----------------
 b/mm/readahead.c              |   25 -
 b/mm/swap_state.c             |    1 
 b/mm/vmscan.c                 |    2 
 29 files changed, 889 insertions(+), 619 deletions(-)
Signature · 1 line
Jens Axboe