mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 00:20:52 -05:00
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>
This commit is contained in:
parent
6b231248e9
commit
4d0f4a5413
1 changed files with 0 additions and 1 deletions
|
@ -537,7 +537,6 @@ static int __io_timeout_prep(struct io_kiocb *req,
|
||||||
if (data->ts.tv_sec < 0 || data->ts.tv_nsec < 0)
|
if (data->ts.tv_sec < 0 || data->ts.tv_nsec < 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
INIT_LIST_HEAD(&timeout->list);
|
|
||||||
data->mode = io_translate_timeout_mode(flags);
|
data->mode = io_translate_timeout_mode(flags);
|
||||||
hrtimer_init(&data->timer, io_timeout_get_clock(data), data->mode);
|
hrtimer_init(&data->timer, io_timeout_get_clock(data), data->mode);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue