]> Git Repo - linux.git/commitdiff
Merge branch 'for-5.19/io_uring-socket' into for-5.19/io_uring-passthrough
authorJens Axboe <[email protected]>
Mon, 9 May 2022 12:35:28 +0000 (06:35 -0600)
committerJens Axboe <[email protected]>
Mon, 9 May 2022 12:35:28 +0000 (06:35 -0600)
* for-5.19/io_uring-socket:
  io_uring: use the text representation of ops in trace
  io_uring: rename op -> opcode
  io_uring: add io_uring_get_opcode
  io_uring: add type to op enum
  io_uring: add socket(2) support
  net: add __sys_socket_file()
  io_uring: fix trace for reduced sqe padding
  io_uring: add fgetxattr and getxattr support
  io_uring: add fsetxattr and setxattr support
  fs: split off do_getxattr from getxattr
  fs: split off setxattr_copy and do_setxattr function from setxattr

1  2 
fs/io_uring.c
include/uapi/linux/io_uring.h

diff --cc fs/io_uring.c
index 9f340f44827b604c87e4f20a44805e7632e6d3eb,dfebbf3a272a310aa7786c3fd5b02465081c9156..53e54fc05488017f7ebf204bd42d71a867999a3f
@@@ -1244,8 -1229,18 +1263,19 @@@ static const struct io_op_def io_op_def
        [IORING_OP_LINKAT] = {},
        [IORING_OP_MSG_RING] = {
                .needs_file             = 1,
 +              .iopoll                 = 1,
        },
+       [IORING_OP_FSETXATTR] = {
+               .needs_file = 1
+       },
+       [IORING_OP_SETXATTR] = {},
+       [IORING_OP_FGETXATTR] = {
+               .needs_file = 1
+       },
+       [IORING_OP_GETXATTR] = {},
+       [IORING_OP_SOCKET] = {
+               .audit_skip             = 1,
+       },
  };
  
  /* requests with any of those set should undergo io_disarm_next() */
index 06621a278cb67c1aa3c587eee62d7149542990df,49d1f3994f8d6b5d505e7a360cc99898475cc50b..31e719f38615f5cad67df01ae156fb080306b2f4
@@@ -102,22 -104,8 +104,22 @@@ enum 
  #define IORING_SETUP_ATTACH_WQ        (1U << 5)       /* attach to existing wq */
  #define IORING_SETUP_R_DISABLED       (1U << 6)       /* start with ring disabled */
  #define IORING_SETUP_SUBMIT_ALL       (1U << 7)       /* continue submit on error */
 +/*
 + * Cooperative task running. When requests complete, they often require
 + * forcing the submitter to transition to the kernel to complete. If this
 + * flag is set, work will be done when the task transitions anyway, rather
 + * than force an inter-processor interrupt reschedule. This avoids interrupting
 + * a task running in userspace, and saves an IPI.
 + */
 +#define IORING_SETUP_COOP_TASKRUN     (1U << 8)
 +/*
 + * If COOP_TASKRUN is set, get notified if task work is available for
 + * running and a kernel transition would be needed to run it. This sets
 + * IORING_SQ_TASKRUN in the sq ring flags. Not valid with COOP_TASKRUN.
 + */
 +#define IORING_SETUP_TASKRUN_FLAG     (1U << 9)
  
- enum {
+ enum io_uring_op {
        IORING_OP_NOP,
        IORING_OP_READV,
        IORING_OP_WRITEV,
This page took 0.106659 seconds and 4 git commands to generate.