From: Jens Axboe <axboe@kernel.dk>
To: kernel test robot <oliver.sang@intel.com>
Cc: oe-lkp@lists.linux.dev, lkp@intel.com, linux-block@vger.kernel.org
Subject: Re: [PATCH] block: move iostat check into blk_acount_io_start()
Date: Sun, 6 Oct 2024 15:11:01 -0600 [thread overview]
Message-ID: <d2f5b906-d721-426f-a469-891eb2220eff@kernel.dk> (raw)
In-Reply-To: <202410062110.512391df-oliver.sang@intel.com>
On 10/6/24 8:07 AM, kernel test robot wrote:
>
>
> Hello,
>
> kernel test robot noticed "blktests.block/024.fail" on:
>
> commit: 5b0b8be85f1ca1c11566890f5d4564ee97cf2d41 ("[PATCH] block: move iostat check into blk_acount_io_start()")
> url: https://github.com/intel-lab-lkp/linux/commits/Jens-Axboe/block-move-iostat-check-into-blk_acount_io_start/20241003-032648
> base: https://git.kernel.org/cgit/linux/kernel/git/axboe/linux-block.git for-next
> patch link: https://lore.kernel.org/all/550fc8a0-3461-49ac-879e-32908870f007@kernel.dk/
> patch subject: [PATCH] block: move iostat check into blk_acount_io_start()
>
> in testcase: blktests
> version: blktests-x86_64-80430af-1_20240910
> with following parameters:
>
> disk: 1HDD
> test: block-024
This should fix it:
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 8e75e3471ea5..9cbc0262ad19 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -331,7 +331,7 @@ EXPORT_SYMBOL(blk_rq_init);
/* Set start and alloc time when the allocated request is actually used */
static inline void blk_mq_rq_time_init(struct request *rq, u64 alloc_time_ns)
{
- if (blk_mq_need_time_stamp(rq))
+ if (blk_queue_io_stat(rq->q))
rq->start_time_ns = blk_time_get_ns();
else
rq->start_time_ns = 0;
--
Jens Axboe
prev parent reply other threads:[~2024-10-06 21:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-02 19:26 [PATCH] block: move iostat check into blk_acount_io_start() Jens Axboe
2024-10-02 19:40 ` Keith Busch
2024-10-03 8:44 ` Anuj gupta
2024-10-03 13:09 ` Christoph Hellwig
2024-10-03 13:19 ` Jens Axboe
2024-10-06 14:07 ` kernel test robot
2024-10-06 21:11 ` Jens Axboe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d2f5b906-d721-426f-a469-891eb2220eff@kernel.dk \
--to=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=lkp@intel.com \
--cc=oe-lkp@lists.linux.dev \
--cc=oliver.sang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox