Skip to content
Snippets Groups Projects
  1. Oct 18, 2021
  2. Sep 07, 2021
  3. Aug 15, 2021
  4. Jan 25, 2021
  5. Dec 02, 2020
  6. Oct 08, 2020
  7. Sep 15, 2020
  8. Jul 01, 2020
  9. Jun 29, 2020
  10. May 29, 2020
  11. Nov 07, 2019
  12. Sep 15, 2019
    • Hou Tao's avatar
      block: make rq sector size accessible for block stats · 3d244306
      Hou Tao authored
      
      Currently rq->data_len will be decreased by partial completion or
      zeroed by completion, so when blk_stat_add() is invoked, data_len
      will be zero and there will never be samples in poll_cb because
      blk_mq_poll_stats_bkt() will return -1 if data_len is zero.
      
      We could move blk_stat_add() back to __blk_mq_complete_request(),
      but that would make the effort of trying to call ktime_get_ns()
      once in vain. Instead we can reuse throtl_size field, and use
      it for both block stats and block throttle, and adjust the
      logic in blk_mq_poll_stats_bkt() accordingly.
      
      Fixes: 4bc6339a ("block: move blk_stat_add() to __blk_mq_end_request()")
      Tested-by: default avatarPavel Begunkov <asml.silence@gmail.com>
      Signed-off-by: default avatarHou Tao <houtao1@huawei.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      3d244306
  13. Aug 29, 2019
  14. Jul 10, 2019
  15. May 31, 2019
  16. Dec 08, 2018
  17. Nov 16, 2018
  18. Nov 15, 2018
  19. Nov 02, 2018
Loading