Skip to content

AIO performance improvements/cleanups, v2

Kent Overstreet linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest26 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/26mm: remove old aio use_mm() commentmm/mmu_context.c+0 -30 replies
2/26aio: remove dead code from aio.hinclude/linux/aio.h+0 -240 replies
3/26gadget: remove only user of aio retrydrivers/usb/gadget/inode.c+29 -90 replies
4/26aio: remove retry-based AIOfs/aio.c fs/ocfs2/dlmglue.c fs/read_write.c +2 more+29 -3771 reply
5/26char: add aio_{read,write} to /dev/{null,zero}drivers/char/mem.c+35 -00 replies
6/26aio: Kill return value of aio_complete()fs/aio.c include/linux/aio.h+11 -160 replies
7/26aio: kiocb_cancel()fs/aio.c+39 -330 replies
8/26aio: Move private stuff out of aio.hdrivers/usb/gadget/inode.c fs/aio.c include/linux/aio.h+62 -610 replies
9/26aio: dprintk() -> pr_debug()fs/aio.c+24 -330 replies
10/26aio: do fget() after aio_get_req()fs/aio.c+9 -130 replies
11/26aio: Make aio_put_req() locklessfs/aio.c include/linux/aio.h+35 -540 replies
12/26aio: Refcounting cleanupfs/aio.c+120 -1540 replies
13/26aio: Convert read_events() to hrtimersfs/aio.c+21 -560 replies
14/26aio: Make aio_read_evt() more efficientfs/aio.c+97 -1080 replies
15/26aio: Use flush_dcache_page()fs/aio.c+17 -280 replies
16/26aio: Use cancellation list lazilydrivers/usb/gadget/inode.c fs/aio.c include/linux/aio.h+58 -540 replies
17/26aio: Change reqs_active to include unreaped completionsfs/aio.c+25 -130 replies
18/26aio: Kill batch allocationfs/aio.c include/linux/aio.h+15 -1030 replies
19/26aio: Kill struct aio_ring_infofs/aio.c+72 -800 replies
20/26aio: Give shared kioctx fields their own cachelinesfs/aio.c+16 -100 replies
21/26aio: reqs_active -> reqs_availablefs/aio.c+14 -150 replies
22/26aio: percpu reqs_availablefs/aio.c+86 -130 replies
23/26Generic dynamic per cpu refcountinginclude/linux/percpu-refcount.h lib/Makefile lib/percpu-refcount.c+194 -11 reply
24/26aio: Percpu ioctx refcountfs/aio.c+12 -150 replies
25/26aio: use xchg() instead of completion_lockfs/aio.c+13 -110 replies
26/26aio: Don't include aio.h in sched.harch/s390/hypfs/inode.c block/scsi_ioctl.c drivers/char/mem.c +49 more+54 -50 replies

Reviews trailers per patch

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

PatchZach Brown
1/26
2/26
3/26
4/26
5/26
6/26A-b
7/26
8/26
9/26
10/26
11/26
12/26
13/26
14/26
15/26
16/26
17/26
18/26
19/26
20/26
21/26
22/26
23/26
24/26
25/26
26/26

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 00/26] AIO performance improvements/cleanups, v2

Last posting: http://thread.gmane.org/gmane.linux.kernel.aio.general/3169

Changes since the last posting should all be noted in the individual patch descriptions.

* Zach pointed out the aio_read_evt() patch was calling functions that could sleep in TASK_INTERRUPTIBLE state, that patch is rewritten.
* Ben pointed out some synchronize_rcu() usage was problematic, converted it to call_rcu()
* The flush_dcache_page() patch is new
* Changed the "use cancellation list lazily" patch so as to remove ki_flags from struct kiocb.

Kent Overstreet (21):
aio: Kill return value of aio_complete()
aio: kiocb_cancel()
aio: Move private stuff out of aio.h
aio: dprintk() -> pr_debug()
aio: do fget() after aio_get_req()
aio: Make aio_put_req() lockless
aio: Refcounting cleanup
aio: Convert read_events() to hrtimers
aio: Make aio_read_evt() more efficient
aio: Use flush_dcache_page()
aio: Use cancellation list lazily
aio: Change reqs_active to include unreaped completions
aio: Kill batch allocation
aio: Kill struct aio_ring_info
aio: Give shared kioctx fields their own cachelines
aio: reqs_active -> reqs_available
aio: percpu reqs_available
Generic dynamic per cpu refcounting
aio: Percpu ioctx refcount
aio: use xchg() instead of completion_lock
aio: Don't include aio.h in sched.h

Zach Brown (5):
mm: remove old aio use_mm() comment
aio: remove dead code from aio.h
gadget: remove only user of aio retry
aio: remove retry-based AIO
char: add aio_{read,write} to /dev/{null,zero}

 arch/s390/hypfs/inode.c                      |    1 +
 block/scsi_ioctl.c                           |    1 +
 drivers/char/mem.c                           |   36 +
 drivers/infiniband/hw/ipath/ipath_file_ops.c |    1 +
 drivers/infiniband/hw/qib/qib_file_ops.c     |    2 +-
 drivers/staging/android/logger.c             |    1 +
 drivers/usb/gadget/inode.c                   |   42 +-
 fs/9p/vfs_addr.c                             |    1 +
 fs/afs/write.c                               |    1 +
 fs/aio.c                                     | 1432 ++++++++++----------------
 fs/block_dev.c                               |    1 +
 fs/btrfs/file.c                              |    1 +
 fs/btrfs/inode.c                             |    1 +
 fs/ceph/file.c                               |    1 +
 fs/compat.c                                  |    1 +
 fs/direct-io.c                               |    1 +
 fs/ecryptfs/file.c                           |    1 +
 fs/ext2/inode.c                              |    1 +
 fs/ext3/inode.c                              |    1 +
 fs/ext4/file.c                               |    1 +
 fs/ext4/indirect.c                           |    1 +
 fs/ext4/inode.c                              |    1 +
 fs/ext4/page-io.c                            |    1 +
 fs/fat/inode.c                               |    1 +
 fs/fuse/dev.c                                |    1 +
 fs/fuse/file.c                               |    1 +
 fs/gfs2/aops.c                               |    1 +
 fs/gfs2/file.c                               |    1 +
 fs/hfs/inode.c                               |    1 +
 fs/hfsplus/inode.c                           |    1 +
 fs/jfs/inode.c                               |    1 +
 fs/nilfs2/inode.c                            |    2 +-
 fs/ntfs/file.c                               |    1 +
 fs/ntfs/inode.c                              |    1 +
 fs/ocfs2/aops.h                              |    2 +
 fs/ocfs2/dlmglue.c                           |    2 +-
 fs/ocfs2/inode.h                             |    2 +
 fs/pipe.c                                    |    1 +
 fs/read_write.c                              |   35 +-
 fs/reiserfs/inode.c                          |    1 +
 fs/ubifs/file.c                              |    1 +
 fs/udf/inode.c                               |    1 +
 fs/xfs/xfs_aops.c                            |    1 +
 fs/xfs/xfs_file.c                            |    1 +
 include/linux/aio.h                          |  135 +--
 include/linux/cgroup.h                       |    1 +
 include/linux/errno.h                        |    1 -
 include/linux/percpu-refcount.h              |   29 +
 include/linux/sched.h                        |    2 -
 kernel/fork.c                                |    1 +
 kernel/printk.c                              |    1 +
 kernel/ptrace.c                              |    1 +
 lib/Makefile                                 |    2 +-
 lib/percpu-refcount.c                        |  164 +++
 mm/mmu_context.c                             |    3 -
 mm/page_io.c                                 |    1 +
 mm/shmem.c                                   |    1 +
 mm/swap.c                                    |    1 +
 security/keys/internal.h                     |    2 +
 security/keys/keyctl.c                       |    1 +
 sound/core/pcm_native.c                      |    2 +-
 61 files changed, 868 insertions(+), 1070 deletions(-)
 create mode 100644 include/linux/percpu-refcount.h
 create mode 100644 lib/percpu-refcount.c
Signature · 7 lines
1.7.12

--
To unsubscribe, send a message with 'unsubscribe linux-aio' in
the body to [email protected].  For more info on Linux AIO,
see: http://www.kvack.org/aio/
Don't email: <a href=mailto:"[email protected]">[email protected]</a>