[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aLhBqTrbUWVK4OKy@infradead.org>
Date: Wed, 3 Sep 2025 06:24:57 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Yu Kuai <yukuai1@...weicloud.com>
Cc: hch@...radead.org, colyli@...nel.org, hare@...e.de, dlemoal@...nel.org,
tieren@...as.com, axboe@...nel.dk, tj@...nel.org,
josef@...icpanda.com, song@...nel.org, kmo@...erainc.com,
satyat@...gle.com, ebiggers@...gle.com, neil@...wn.name,
akpm@...ux-foundation.org, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, cgroups@...r.kernel.org,
linux-raid@...r.kernel.org, yukuai3@...wei.com, yi.zhang@...wei.com,
yangerkun@...wei.com, johnny.chenyi@...wei.com
Subject: Re: [PATCH RFC v3 02/15] block: add QUEUE_FLAG_BIO_ISSUE
On Mon, Sep 01, 2025 at 11:32:07AM +0800, Yu Kuai wrote:
> static inline void blkcg_bio_issue_init(struct bio *bio)
> {
> - 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();
> }
Given that this is called on a bio and called from generic code
and not blk-mq, the flag should in the gendisk and not the queue.
Powered by blists - more mailing lists