Skip to content

Commit 8fadb86

Browse files
keithbuschaxboe
authored andcommitted
io_uring: remove uring_cmd cookie
No more users of this field. Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Signed-off-by: Keith Busch <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent e5da71f commit 8fadb86

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

include/linux/io_uring.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,8 @@ enum io_uring_cmd_flags {
3232
struct io_uring_cmd {
3333
struct file *file;
3434
const struct io_uring_sqe *sqe;
35-
union {
36-
/* callback to defer completions to task context */
37-
void (*task_work_cb)(struct io_uring_cmd *cmd, unsigned);
38-
/* used for polled completion */
39-
void *cookie;
40-
};
35+
/* callback to defer completions to task context */
36+
void (*task_work_cb)(struct io_uring_cmd *cmd, unsigned);
4137
u32 cmd_op;
4238
u32 flags;
4339
u8 pdu[32]; /* available inline for free use */

io_uring/uring_cmd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ int io_uring_cmd(struct io_kiocb *req, unsigned int issue_flags)
182182
return -EOPNOTSUPP;
183183
issue_flags |= IO_URING_F_IOPOLL;
184184
req->iopoll_completed = 0;
185-
WRITE_ONCE(ioucmd->cookie, NULL);
186185
}
187186

188187
ret = file->f_op->uring_cmd(ioucmd, issue_flags);

0 commit comments

Comments
 (0)