[PATCH blktests 1/2] common/nvme: add '--no-wait-ns' argument to _nvme_connect_subsys()

Chaitanya Kulkarni chaitanyak at nvidia.com
Mon Aug 25 10:17:16 PDT 2025


On 8/22/25 08:10, Yi Zhang wrote:
> The default behavior of _nvme_connect_subsys is just wait for the
> controller ready, but sometimes the namespace was not ready after
> _nvme_connect_subsys especially on RT kernel, it's better we can
> have namespace ready in _nvme_connect_subsys, so
> 1) re-use the the function _nvme_ns_ready to check namespace ready
> 2) add one new argument `--no-wait-ns` to skip for the cases that
> don't need wait for namespace ready
> 3) update to use "return 1" for controller failure check and "return 2"
> for namespace failure check
>
> After this change, it will avoids the failures like below which easy to
> be reproduced on rt kernel:

[...]

> Link:https://github.com/linux-blktests/blktests/issues/193
> Signed-off-by: Yi Zhang<yi.zhang at redhat.com>


Looks good.

Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>

-ck




More information about the Linux-nvme mailing list