Add kernel AIO support for CIFS
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | CIFS: Add asynchronous read support through kernel AIOfs/ fs/ | +252 | 4 replies | |
| 2/2 | CIFS: Add asynchronous write support through kernel AIOfs/ fs/ | +140 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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