From: Nam Cao Date: Thu, 31 Oct 2024 15:14:19 +0000 (+0100) Subject: io_uring: Remove redundant hrtimer's callback function setup X-Git-Tag: v6.13-rc1~171^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c95d36585b9f8c43a4c5d5a9fe22477a138b63f4;p=thirdparty%2Fkernel%2Flinux.git io_uring: Remove redundant hrtimer's callback function setup The IORING_OP_TIMEOUT command uses hrtimer underneath. The timer's callback function is setup in io_timeout(), and then the callback function is setup again when the timer is rearmed. Since the callback function is the same for both cases, the latter setup is redundant, therefore remove it. Signed-off-by: Nam Cao Signed-off-by: Thomas Gleixner Reviewed-by: Jens Axboe timeout_lock); list_add(&timeout->list, ctx->timeout_list.prev); - data->timer.function = io_timeout_fn; hrtimer_start(&data->timer, timespec64_to_ktime(data->ts), data->mode); spin_unlock_irq(&ctx->timeout_lock); return;