File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -2346,7 +2346,7 @@ static inline int io_cqring_wait_schedule(struct io_ring_ctx *ctx,
2346
2346
struct io_wait_queue * iowq ,
2347
2347
ktime_t * timeout )
2348
2348
{
2349
- int token , ret ;
2349
+ int ret ;
2350
2350
unsigned long check_cq ;
2351
2351
2352
2352
/* make sure we run task_work before checking for signals */
@@ -2362,18 +2362,9 @@ static inline int io_cqring_wait_schedule(struct io_ring_ctx *ctx,
2362
2362
if (check_cq & BIT (IO_CHECK_CQ_DROPPED_BIT ))
2363
2363
return - EBADR ;
2364
2364
}
2365
-
2366
- /*
2367
- * Use io_schedule_prepare/finish, so cpufreq can take into account
2368
- * that the task is waiting for IO - turns out to be important for low
2369
- * QD IO.
2370
- */
2371
- token = io_schedule_prepare ();
2372
- ret = 1 ;
2373
2365
if (!schedule_hrtimeout (timeout , HRTIMER_MODE_ABS ))
2374
- ret = - ETIME ;
2375
- io_schedule_finish (token );
2376
- return ret ;
2366
+ return - ETIME ;
2367
+ return 1 ;
2377
2368
}
2378
2369
2379
2370
/*
You can’t perform that action at this time.
0 commit comments