diff --git a/block/blk-iocost.c b/block/blk-iocost.c index 586cc162bb536edc09c7679db7a96bb465363cff..1f62f34a37dc6bff5a2ab211881a1985276d7c91 100644 --- a/block/blk-iocost.c +++ b/block/blk-iocost.c @@ -1318,7 +1318,7 @@ static bool iocg_is_idle(struct ioc_gq *iocg) return false; /* is something in flight? */ - if (atomic64_read(&iocg->done_vtime) < atomic64_read(&iocg->vtime)) + if (atomic64_read(&iocg->done_vtime) != atomic64_read(&iocg->vtime)) return false; return true;