1. 22 6月, 2022 1 次提交
  2. 17 6月, 2022 4 次提交
  3. 30 5月, 2022 1 次提交
  4. 28 5月, 2022 3 次提交
  5. 23 5月, 2022 1 次提交
  6. 21 5月, 2022 1 次提交
  7. 12 5月, 2022 1 次提交
  8. 11 5月, 2022 1 次提交
  9. 28 4月, 2022 1 次提交
    • T
      Revert "block: inherit request start time from bio for BLK_CGROUP" · 4cddeaca
      Tejun Heo 提交于
      This reverts commit 00067077. It has a
      couple problems:
      
      * bio_issue_time() is stored in bio->bi_issue truncated to 51 bits. This
        overflows in slightly over 26 days. Setting rq->io_start_time_ns with it
        means that io duration calculation would yield >26days after 26 days of
        uptime. This, for example, confuses kyber making it cause high IO
        latencies.
      
      * rq->io_start_time_ns should record the time that the IO is issued to the
        device so that on-device latency can be measured. However,
        bio_issue_time() is set before the bio goes through the rq-qos controllers
        (wbt, iolatency, iocost), so when the bio gets throttled in any of the
        mechanisms, the measured latencies make no sense - on-device latencies end
        up higher than request-alloc-to-completion latencies.
      
      We'll need a smarter way to avoid calling ktime_get_ns() repeatedly
      back-to-back. For now, let's revert the commit.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: stable@vger.kernel.org # v5.16+
      Link: https://lore.kernel.org/r/YmmeOLfo5lzc+8yI@slm.duckdns.orgSigned-off-by: NJens Axboe <axboe@kernel.dk>
      4cddeaca
  10. 15 4月, 2022 1 次提交
  11. 31 3月, 2022 1 次提交
  12. 12 3月, 2022 1 次提交
  13. 09 3月, 2022 9 次提交
  14. 08 3月, 2022 1 次提交
  15. 17 2月, 2022 5 次提交
  16. 12 2月, 2022 2 次提交
  17. 04 2月, 2022 1 次提交
  18. 26 1月, 2022 1 次提交
  19. 18 1月, 2022 1 次提交
  20. 16 1月, 2022 1 次提交
  21. 10 1月, 2022 1 次提交
    • M
      block: don't protect submit_bio_checks by q_usage_counter · 9d497e29
      Ming Lei 提交于
      Commit cc9c884d ("block: call submit_bio_checks under q_usage_counter")
      uses q_usage_counter to protect submit_bio_checks for avoiding IO after
      disk is deleted by del_gendisk().
      
      Turns out the protection isn't necessary, because once
      blk_mq_freeze_queue_wait() in del_gendisk() returns:
      
      1) all in-flight IO has been done
      
      2) all new IO will be failed in __bio_queue_enter() because
         q_usage_counter is dead, and GD_DEAD is set
      
      3) both disk and request queue instance are safe since caller of
      submit_bio() guarantees that the disk can't be closed.
      
      Once submit_bio_checks() needn't the protection of q_usage_counter, we can
      move submit_bio_checks before calling blk_mq_submit_bio() and
      ->submit_bio(). With this change, we needn't to throttle queue with
      holding one allocated request, then precise driver tag or request won't be
      wasted in throttling. Meantime we can unify the bio check for both bio
      based and request based driver.
      
      Cc: Christoph Hellwig <hch@lst.de>
      Signed-off-by: NMing Lei <ming.lei@redhat.com>
      Link: https://lore.kernel.org/r/20220104134223.590803-1-ming.lei@redhat.comSigned-off-by: NJens Axboe <axboe@kernel.dk>
      9d497e29
  22. 21 12月, 2021 1 次提交