Skip to content

Add kernel AIO support for CIFS

Pavel Shilovsky linux-cifs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2CIFS: Add asynchronous read support through kernel AIOfs/cifs/cifsglob.h fs/cifs/file.c+252 -394 replies
2/2CIFS: Add asynchronous write support through kernel AIOfs/cifs/cifsglob.h fs/cifs/file.c+140 -510 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] Add kernel AIO support for CIFS

This patchset adds kernel AIO support for CIFS module. Currently the code processes all read and write requests synchronously regardless of existence of iocb->ki_complete() callback. It is not what kernel AIO expects when a user submits i/o calls through io_submit() interface. That's why new aio context was introduced: it allowed to process i/o responses in a separate thread and return to the caller immediately if ki_complete() is specified. For synchronous variants the code simply needs to wait in the current thread until aio context processing is completed.

The work scope is divided into two parts for reading and writing. With these patches applied i/o performance benefits from increasing of i/o queue depth size (e.g. in FIO).

The checkpatch.pl script shows 2 warnings related to using of ENOSYS error code but fixing this is out of scope of this patchset (we have plenty of places that use ENOSYS for the same logic and they all should be fixed at once).

Pavel Shilovsky (2):
CIFS: Add asynchronous read support through kernel AIO
CIFS: Add asynchronous write support through kernel AIO

 fs/cifs/cifsglob.h |  20 +++
 fs/cifs/file.c     | 462 ++++++++++++++++++++++++++++++++++++++++++-----------
 2 files changed, 392 insertions(+), 90 deletions(-)
Signature · 1 line
2.7.4