On Mon, Sep 01, 2025 at 11:32:07AM +0800, Yu Kuai wrote:ok, will change to disk, and also change set/clear the flag to
static inline void blkcg_bio_issue_init(struct bio *bio)Given that this is called on a bio and called from generic code
{
- bio->issue_time_ns = blk_time_get_ns();
+ struct request_queue *q = bdev_get_queue(bio->bi_bdev);
+
+ if (test_bit(QUEUE_FLAG_BIO_ISSUE, &q->queue_flags))
+ bio->issue_time_ns = blk_time_get_ns();
}
and not blk-mq, the flag should in the gendisk and not the queue.