io_uring/timeout: use 'ctx' consistently
There's already a local ctx variable, yet cq_timeouts accounting uses req->ctx. Use ctx consistently. Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn> Link: https://patch.msgid.link/20260402014952.260414-1-yangxiuwei@kylinos.cn Signed-off-by: Jens Axboe <axboe@kernel.dk>master
parent
c7f3aaf3e8
commit
f847bf6d29
|
|
@ -284,8 +284,8 @@ static enum hrtimer_restart io_timeout_fn(struct hrtimer *timer)
|
|||
|
||||
raw_spin_lock_irqsave(&ctx->timeout_lock, flags);
|
||||
list_del_init(&timeout->list);
|
||||
atomic_set(&req->ctx->cq_timeouts,
|
||||
atomic_read(&req->ctx->cq_timeouts) + 1);
|
||||
atomic_set(&ctx->cq_timeouts,
|
||||
atomic_read(&ctx->cq_timeouts) + 1);
|
||||
raw_spin_unlock_irqrestore(&ctx->timeout_lock, flags);
|
||||
|
||||
if (!(data->flags & IORING_TIMEOUT_ETIME_SUCCESS))
|
||||
|
|
|
|||
Loading…
Reference in New Issue