return ret;
 }
 
-static bool ufshcd_is_busy(struct request *req, void *priv, bool reserved)
-{
-       int *busy = priv;
-
-       WARN_ON_ONCE(reserved);
-       (*busy)++;
-       return false;
-}
-
-/* Whether or not any tag is in use by a request that is in progress. */
-static bool ufshcd_any_tag_in_use(struct ufs_hba *hba)
-{
-       struct request_queue *q = hba->cmd_queue;
-       int busy = 0;
-
-       blk_mq_tagset_busy_iter(q->tag_set, ufshcd_is_busy, &busy);
-       return busy;
-}
-
 static int ufshcd_devfreq_get_dev_status(struct device *dev,
                struct devfreq_dev_status *stat)
 {
 
        if (hba->clk_gating.active_reqs
                || hba->ufshcd_state != UFSHCD_STATE_OPERATIONAL
-               || ufshcd_any_tag_in_use(hba) || hba->outstanding_tasks
+               || hba->outstanding_reqs || hba->outstanding_tasks
                || hba->active_uic_cmd || hba->uic_async_done)
                goto rel_lock;