Skip to content

Commit 1627089

Browse files
isilenceaxboe
authored andcommitted
io_uring: remove sqo_task
Now, sqo_task is used only for a warning that is not interesting anymore since sqo_dead is gone, remove all of that including ctx->sqo_task. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 70aacfe commit 1627089

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

fs/io_uring.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,6 @@ struct io_ring_ctx {
379379

380380
struct io_rings *rings;
381381

382-
/*
383-
* For SQPOLL usage
384-
*/
385-
struct task_struct *sqo_task;
386-
387382
/* Only used for accounting purposes */
388383
struct mm_struct *mm_account;
389384

@@ -8747,10 +8742,6 @@ static int io_uring_add_task_file(struct io_ring_ctx *ctx, struct file *file)
87478742
fput(file);
87488743
return ret;
87498744
}
8750-
8751-
/* one and only SQPOLL file note, held by sqo_task */
8752-
WARN_ON_ONCE((ctx->flags & IORING_SETUP_SQPOLL) &&
8753-
current != ctx->sqo_task);
87548745
}
87558746
tctx->last = file;
87568747
}
@@ -9376,7 +9367,6 @@ static int io_uring_create(unsigned entries, struct io_uring_params *p,
93769367
ctx->compat = in_compat_syscall();
93779368
if (!capable(CAP_IPC_LOCK))
93789369
ctx->user = get_uid(current_user());
9379-
ctx->sqo_task = current;
93809370

93819371
/*
93829372
* This is just grabbed for accounting purposes. When a process exits,

0 commit comments

Comments
 (0)