mbox series

[v1,0/2] io-uring: Make statx api stable

Message ID 20220209190345.2374478-1-shr@fb.com (mailing list archive)
Headers show
Series io-uring: Make statx api stable | expand

Message

Stefan Roesch Feb. 9, 2022, 7:03 p.m. UTC
One of the key architectual tenets of io-uring is to keep the
parameters for io-uring stable. After the call has been submitted,
its value can be changed.  Unfortunaltely this is not the case for
the current statx implementation.

Patches:
 Patch 1: fs: replace const char* parameter in vfs_statx and do_statx with
          struct filename
   Create filename object outside of do_statx and vfs_statx, so io-uring
   can create the filename object during the prepare phase

 Patch 2: io-uring: Copy path name during prepare stage for statx
   Create and store filename object during prepare phase


There is also a patch for the liburing libray to add a new test case. This
patch makes sure that the api is stable.
  "liburing: add test for stable statx api"

The patch has been tested with the liburing test suite and fstests.


Stefan Roesch (2):
  fs: replace const char* parameter in vfs_statx and do_statx with
    struct filename
  io-uring: Copy path name during prepare stage for statx

 fs/internal.h |  4 +++-
 fs/io_uring.c | 22 ++++++++++++++++++++--
 fs/stat.c     | 49 ++++++++++++++++++++++++++++++++++++-------------
 3 files changed, 59 insertions(+), 16 deletions(-)


base-commit: e6251ab4551f51fa4cee03523e08051898c3ce82