diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-02-17 16:27:23 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-02-22 17:57:23 +0100 |
commit | 8d664282a03fec09682f10252d3c785c2513691d (patch) | |
tree | 3111af79c32cf40d67591bcc6819ad1666f5934f /io_uring/tctx.c | |
parent | io_uring: consolidate the put_ref-and-return section of adding work (diff) | |
download | linux-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.c | 2 |
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); |