io_uring: Fix a null-ptr-deref in io_tctx_exit_cb()
[platform/kernel/linux-starfive.git] / io_uring / opdef.h
index ece8ed4..3efe06d 100644 (file)
@@ -25,6 +25,8 @@ struct io_op_def {
        unsigned                ioprio : 1;
        /* supports iopoll */
        unsigned                iopoll : 1;
+       /* opcode specific path will handle ->async_data allocation if needed */
+       unsigned                manual_alloc : 1;
        /* size of async data needed, if any */
        unsigned short          async_size;
 
@@ -34,6 +36,7 @@ struct io_op_def {
        int (*issue)(struct io_kiocb *, unsigned int);
        int (*prep_async)(struct io_kiocb *);
        void (*cleanup)(struct io_kiocb *);
+       void (*fail)(struct io_kiocb *);
 };
 
 extern const struct io_op_def io_op_defs[];