]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring: Remove redundant hrtimer's callback function setup
authorNam Cao <namcao@linutronix.de>
Thu, 31 Oct 2024 15:14:19 +0000 (16:14 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 7 Nov 2024 01:47:05 +0000 (02:47 +0100)
commitc95d36585b9f8c43a4c5d5a9fe22477a138b63f4
tree0a7746966221842f346f7e32e09e1c5c9f845834
parent48baf9fa4884e5ccf6ef8fa7099693696ebc6975
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 <namcao@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk:
Link: https://lore.kernel.org/all/07b28dfd5691478a2d250f379c8b90dd37f9bb9a.1730386209.git.namcao@linutronix.de
io_uring/timeout.c