[PATCH blktests v2 1/9] nvme/047: look up the namespace again after reconnecting

Hannes Reinecke hare at suse.de
Fri Nov 20 03:23:40 PST 2026


On 11/18/26 10:26 AM, Daniel Wagner wrote:
> nvme/047 keeps using the namespace name from the first connect after
> reconnecting. The name can change when other controllers come and go,
> and fio then fails to open the device. Look it up again after the
> second connect.
> 
> Fixes: 7497d8b45817 ("nvme/047: Test different queue types for fabrics transports")
> Signed-off-by: Daniel Wagner <dwagner at suse.de>
> ---
>   tests/nvme/047 | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/tests/nvme/047 b/tests/nvme/047
> index 433090f2d6f2..2aeee2f0f1aa 100755
> --- a/tests/nvme/047
> +++ b/tests/nvme/047
> @@ -42,6 +42,8 @@ test() {
>   
>   	_nvme_connect_subsys --nr-write-queues 1 --nr-poll-queues 1
>   
> +	ns=$(_find_nvme_ns "${def_subsys_uuid}")
> +
>   	_run_fio_rand_io --filename="/dev/${ns}" --size="${rand_io_size}"
>   
>   	_nvme_disconnect_subsys >> "$FULL" 2>&1
> 

What's a bit awkward is this 'subsys_uuid'; one is confused why we
would set the subsystem UUID as the UUID of the namespace.
Eg what would happen if we were using (or wanting to specify) more
than one namespace?
Can't we rename it to 'ns_uuid' to make the scope clear?

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare at suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich



More information about the Linux-nvme mailing list