Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/timeout: remove duplicate initialization of the io_timeout list.

In the __io_timeout_prep function, the io_timeout list is initialized
twice, removing the meaningless second initialization.

Signed-off-by: Ruyi Zhang <ruyi.zhang@samsung.com>
Link: https://lore.kernel.org/r/20240411055953.2029218-1-ruyi.zhang@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Ruyi Zhang and committed by
Jens Axboe
4d0f4a54 6b231248

-1
-1
io_uring/timeout.c
··· 537 537 if (data->ts.tv_sec < 0 || data->ts.tv_nsec < 0) 538 538 return -EINVAL; 539 539 540 - INIT_LIST_HEAD(&timeout->list); 541 540 data->mode = io_translate_timeout_mode(flags); 542 541 hrtimer_init(&data->timer, io_timeout_get_clock(data), data->mode); 543 542