diff --git a/block/blk-iocost.c b/block/blk-iocost.c index 20993d79d5cc..e270e64ba342 100644 --- a/block/blk-iocost.c +++ b/block/blk-iocost.c @@ -1430,11 +1430,8 @@ static void iocg_pay_debt(struct ioc_gq *iocg, u64 abs_vpay, lockdep_assert_held(&iocg->ioc->lock); lockdep_assert_held(&iocg->waitq.lock); - /* - * make sure that nobody messed with @iocg. Check iocg->pd.online - * to avoid warn when removing blkcg or disk. - */ - WARN_ON_ONCE(list_empty(&iocg->active_list) && iocg->pd.online); + /* make sure that nobody messed with @iocg */ + WARN_ON_ONCE(list_empty(&iocg->active_list)); WARN_ON_ONCE(iocg->inuse > 1); iocg->abs_vdebt -= min(abs_vpay, iocg->abs_vdebt);