From: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
To: John Garry <john.g.garry@oracle.com>
Cc: linux-nvme@lists.infradead.org
Subject: Re: [PATCH blktests] nvme/068: check module reference count with patience
Date: Thu, 6 Aug 2026 12:29:57 +0900 [thread overview]
Message-ID: <anP_X6bgk-H9bL_3@shinmob> (raw)
In-Reply-To: <a7b2a986-9769-4751-994e-eb3d80694b7b@oracle.com>
On Aug 05, 2026 / 09:07, John Garry wrote:
> On 05/08/2026 06:13, Shin'ichiro Kawasaki wrote:
[...]
> > diff --git a/tests/nvme/068 b/tests/nvme/068
> > index 4aee95b..7e39e17 100755
> > --- a/tests/nvme/068
> > +++ b/tests/nvme/068
> > @@ -27,6 +27,19 @@ _delayed_nvme_reconnect_ctrl() {
> > _nvme_connect_subsys
> > }
> > +_check_nvme_core_ref_count() {
> > + local refcnt i
> > +
> > + for ((i = 0; i < 10; i++)); do
> > + refcnt=$(_module_use_count nvme_core)
> > + if [ "$refcnt" != "" ] && [ "$refcnt" -eq "$refcnt_orig" ]; then
>
> As I remember, $refcnt == "" happens when the driver is built-in. So should
> we just always return 0 immediately when we find this?
Thanks for the catch. Will reflect on v2.
>
> > + return
>
> return 0?
Agreed, explicit 0 return is the better. Will reflect this to v2.
prev parent reply other threads:[~2026-08-06 3:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-05 5:13 [PATCH blktests] nvme/068: check module reference count with patience Shin'ichiro Kawasaki
2026-08-05 8:07 ` John Garry
2026-08-06 3:29 ` Shin'ichiro Kawasaki [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=anP_X6bgk-H9bL_3@shinmob \
--to=shinichiro.kawasaki@wdc.com \
--cc=john.g.garry@oracle.com \
--cc=linux-nvme@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.