From: Yu Kuai <yukuai1@huaweicloud.com>
To: John Garry <john.g.garry@oracle.com>,
Yu Kuai <yukuai1@huaweicloud.com>,
axboe@kernel.dk, hare@suse.de, hch@infradead.org
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
yi.zhang@redhat.com, calvin@wbinvd.org, david@fromorbit.com,
yi.zhang@huawei.com, yangerkun@huawei.com,
johnny.chenyi@huawei.com, "yukuai (C)" <yukuai3@huawei.com>
Subject: Re: [PATCH] block: fix false warning in bdev_count_inflight_rw()
Date: Thu, 26 Jun 2025 19:37:03 +0800 [thread overview]
Message-ID: <bca70ea3-8f9c-b69e-0a39-0a0d91e7e353@huaweicloud.com> (raw)
In-Reply-To: <27e4f72f-3b6e-4dc8-a722-0ace9aa8c066@oracle.com>
Hi,
在 2025/06/26 17:34, John Garry 写道:
> Is it even safe to even use this function when not used for just
> informative purposes? I mean, for example, it is used by md code to
> check for idle state - could that check return an invalid result (and
> cause harm)?
For md code, I think it's ok, md still use completed IO for idle state.
More importantly, the io_ticks can be wrong due to inflight to be zero,
however, it's inaccurate for a long time and there is no much we can do
:(
Thanks,
Kuai
next prev parent reply other threads:[~2025-06-26 11:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-26 8:39 Yu Kuai
2025-06-26 8:54 ` Damien Le Moal
2025-06-26 11:32 ` Yu Kuai
2025-06-26 9:34 ` John Garry
2025-06-26 11:37 ` Yu Kuai [this message]
2025-06-26 10:11 ` Christoph Hellwig
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=bca70ea3-8f9c-b69e-0a39-0a0d91e7e353@huaweicloud.com \
--to=yukuai1@huaweicloud.com \
--cc=axboe@kernel.dk \
--cc=calvin@wbinvd.org \
--cc=david@fromorbit.com \
--cc=hare@suse.de \
--cc=hch@infradead.org \
--cc=john.g.garry@oracle.com \
--cc=johnny.chenyi@huawei.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yangerkun@huawei.com \
--cc=yi.zhang@huawei.com \
--cc=yi.zhang@redhat.com \
--cc=yukuai3@huawei.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
all inboxes | Powered by JetHome®