Re: [PATCH] iocost: Only inc nr_shortages when have io waited

2020-08-04 Thread Tejun Heo
On Sun, Aug 02, 2020 at 01:00:21AM +0800, Chengming Zhou wrote: > The last else branch of current code may have not io waited in iocg, > in which case we should not inc nr_shortages, or the device vrate > will speed up even this iocg is not shortage of vtime. > > Signed-off-by: Chengming Zhou >

[PATCH] iocost: Only inc nr_shortages when have io waited

2020-08-01 Thread Chengming Zhou
The last else branch of current code may have not io waited in iocg, in which case we should not inc nr_shortages, or the device vrate will speed up even this iocg is not shortage of vtime. Signed-off-by: Chengming Zhou --- block/blk-iocost.c | 2 +- 1 file changed, 1 insertion(+), 1