Re: [PATCH RFC v3 02/15] block: add QUEUE_FLAG_BIO_ISSUE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

在 2025/9/3 21:24, Christoph Hellwig 写道:
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.

ok, will change to disk, and also change set/clear the flag to
enable/disable iolatency.

Thanks,
Kuai





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux