Merge tag 'for-6.8/io_uring-2024-01-08' of git://git.kernel.dk/linux
[sfrench/cifs-2.6.git] / include / linux / io_uring / cmd.h
index d69b4038aa3e5360bd82f189ad68f2966a0d59ba..e453a997c0605330f3ce2ea2c61368417f017851 100644 (file)
@@ -7,17 +7,12 @@
 
 /* only top 8 bits of sqe->uring_cmd_flags for kernel internal use */
 #define IORING_URING_CMD_CANCELABLE    (1U << 30)
-#define IORING_URING_CMD_POLLED                (1U << 31)
 
 struct io_uring_cmd {
        struct file     *file;
        const struct io_uring_sqe *sqe;
-       union {
-               /* callback to defer completions to task context */
-               void (*task_work_cb)(struct io_uring_cmd *cmd, unsigned);
-               /* used for polled completion */
-               void *cookie;
-       };
+       /* callback to defer completions to task context */
+       void (*task_work_cb)(struct io_uring_cmd *cmd, unsigned);
        u32             cmd_op;
        u32             flags;
        u8              pdu[32]; /* available inline for free use */