[PATCH blktests 1/2] nvme/060: suppress state file write error

Daniel Wagner dwagner at suse.de
Thu Jun 18 22:57:24 PDT 2026


On Fri, Jun 19, 2026 at 10:33:28AM +0900, Shin'ichiro Kawasaki wrote:
> The test case nvme/060 sometimes fails with the message below:
> 
> nvme/060 (tr=rdma) (test nvme fabrics target reset)          [failed]
>     runtime    ...  27.967s
>     --- tests/nvme/060.out	2026-01-19 04:30:04.820982813 +0000
>     +++ /home/fedora/blktests/results/nodev_tr_rdma/nvme/060.out.bad	2026-01-19 06:44:49.223643735 +0000
>     @@ -1,2 +1,3 @@
>      Running nvme/060
>     +_: line 1: /sys/kernel/debug/nvmet//blktests-subsystem-1/ctrl1/state: No such file or directory
>      Test complete
> 
> To reset the test target controller, the test case locates the "state"
> file and writes to it. This works in most cases, but the write can
> fail: the test case connects and disconnects the target controller's
> subsystem in parallel, so the "state" file may disappear after being
> located but before the write happens.
> 
> Suppress the write error message to avoid this sporadic failure.
> 
> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki at wdc.com>

Thanks for fixing this up!

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



More information about the Linux-nvme mailing list