summaryrefslogtreecommitdiff
path: root/io_uring/tctx.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2023-02-17 18:27:23 +0300
committerJens Axboe <axboe@kernel.dk>2023-02-22 19:57:23 +0300
commit8d664282a03fec09682f10252d3c785c2513691d (patch)
tree3111af79c32cf40d67591bcc6819ad1666f5934f /io_uring/tctx.c
parentce8e04f6e5d3b2d14cd00cc4c0b1cc8cbdcf4d12 (diff)
downloadlinux-8d664282a03fec09682f10252d3c785c2513691d.tar.xz
io_uring: rename 'in_idle' to 'in_cancel'
This better describes what it does - it's incremented when the task is currently undergoing a cancelation operation, due to exiting or exec'ing. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/tctx.c')
-rw-r--r--io_uring/tctx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/tctx.c b/io_uring/tctx.c
index 4324b1cf1f6a..3a8d1dd97e1b 100644
--- a/io_uring/tctx.c
+++ b/io_uring/tctx.c
@@ -83,7 +83,7 @@ __cold int io_uring_alloc_task_context(struct task_struct *task,
xa_init(&tctx->xa);
init_waitqueue_head(&tctx->wait);
- atomic_set(&tctx->in_idle, 0);
+ atomic_set(&tctx->in_cancel, 0);
atomic_set(&tctx->inflight_tracked, 0);
task->io_uring = tctx;
init_llist_head(&tctx->task_list);