|
|
Log in / Subscribe / Register

io_uring getdents

From:  Hao Xu <hao.xu-AT-linux.dev>
To:  io-uring-AT-vger.kernel.org, Jens Axboe <axboe-AT-kernel.dk>
Subject:  [PATCH v3 0/3] io_uring getdents
Date:  Tue, 11 Jul 2023 19:40:24 +0800
Message-ID:  <20230711114027.59945-1-hao.xu@linux.dev>
Cc:  Dominique Martinet <asmadeus-AT-codewreck.org>, Pavel Begunkov <asml.silence-AT-gmail.com>, Christian Brauner <brauner-AT-kernel.org>, Alexander Viro <viro-AT-zeniv.linux.org.uk>, Stefan Roesch <shr-AT-fb.com>, Clay Harris <bugs-AT-claycon.org>, Dave Chinner <david-AT-fromorbit.com>, linux-fsdevel-AT-vger.kernel.org, Wanpeng Li <wanpengli-AT-tencent.com>
Archive-link:  Article

From: Hao Xu <howeyxu@tencent.com>

This series introduce getdents64 to io_uring, the code logic is similar
with the snychronized version's. It first try nowait issue, and offload
it to io-wq threads if the first try fails.


v2->v3:
 - removed the kernfs patches
 - add f_pos_lock logic
 - remove the "reduce last EOF getdents try" optimization since
   Dominique reports that doesn't make difference
 - remove the rewind logic, I think the right way is to introduce lseek
   to io_uring not to patch this logic to getdents.
 - add Singed-off-by of Stefan Roesch for patch 1 since checkpatch
   complained that Co-developed-by someone should be accompanied with
   Signed-off-by same person, I can remove them if Stefan thinks that's
   not proper.


Dominique Martinet (1):
  fs: split off vfs_getdents function of getdents64 syscall

Hao Xu (2):
  vfs_getdents/struct dir_context: add flags field
  io_uring: add support for getdents

 fs/internal.h                 |  8 +++++
 fs/readdir.c                  | 36 ++++++++++++++++-----
 include/linux/fs.h            |  8 +++++
 include/uapi/linux/io_uring.h |  7 ++++
 io_uring/fs.c                 | 60 +++++++++++++++++++++++++++++++++++
 io_uring/fs.h                 |  3 ++
 io_uring/opdef.c              |  8 +++++
 7 files changed, 122 insertions(+), 8 deletions(-)

-- 
2.25.1



Copyright © 2023, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds