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

Daniel Wagner dwagner at suse.de
Wed Aug 27 01:09:12 PDT 2025


On Fri, Aug 22, 2025 at 11:10:52AM -0400, 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:

I would trim the commit message, the error log doesn't seem to add a lot
of information.

Besides that, looks good. Thanks for getting this sorted out!

Reviewed-by: Daniel Wagner <dwagner at suse.de>



More information about the Linux-nvme mailing list