summaryrefslogtreecommitdiffstats
path: root/io_uring/tctx.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2023-02-17 16:27:23 +0100
committerJens Axboe <axboe@kernel.dk>2023-02-22 17:57:23 +0100
commit8d664282a03fec09682f10252d3c785c2513691d (patch)
tree3111af79c32cf40d67591bcc6819ad1666f5934f /io_uring/tctx.c
parentio_uring: consolidate the put_ref-and-return section of adding work (diff)
downloadlinux-8d664282a03fec09682f10252d3c785c2513691d.tar.xz
linux-8d664282a03fec09682f10252d3c785c2513691d.zip
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);