File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2435,13 +2435,14 @@ static int io_cqring_schedule_timeout(struct io_wait_queue *iowq,
2435
2435
{
2436
2436
ktime_t timeout ;
2437
2437
2438
- hrtimer_init_on_stack (& iowq -> t , clock_id , HRTIMER_MODE_ABS );
2439
2438
if (iowq -> min_timeout ) {
2440
2439
timeout = ktime_add_ns (iowq -> min_timeout , start_time );
2441
- iowq -> t .function = io_cqring_min_timer_wakeup ;
2440
+ hrtimer_setup_on_stack (& iowq -> t , io_cqring_min_timer_wakeup , clock_id ,
2441
+ HRTIMER_MODE_ABS );
2442
2442
} else {
2443
2443
timeout = iowq -> timeout ;
2444
- iowq -> t .function = io_cqring_timer_wakeup ;
2444
+ hrtimer_setup_on_stack (& iowq -> t , io_cqring_timer_wakeup , clock_id ,
2445
+ HRTIMER_MODE_ABS );
2445
2446
}
2446
2447
2447
2448
hrtimer_set_expires_range_ns (& iowq -> t , timeout , 0 );
You can’t perform that action at this time.
0 commit comments