Skip to content

Test multipath and marginal ports - #264

Open
Mr-Bossman wants to merge 2 commits into
linux-blktests:masterfrom
Mr-Bossman:dev/jesse/fpin
Open

Mr-Bossman wants to merge 2 commits into
linux-blktests:masterfrom
Mr-Bossman:dev/jesse/fpin

Conversation

@Mr-Bossman

@Mr-Bossman Mr-Bossman commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Add tests/nvme/070 to test various multipath and marginal port
scenarios, while confirming the port usage and state. This test is
intended to emulate receiving an FPIN event in a multipath environment.

Lore link: https://lore.kernel.org/linux-nvme/20260812174503.3705830-1-jtaubepe@redhat.com/

@Mr-Bossman
Mr-Bossman force-pushed the dev/jesse/fpin branch 3 times, most recently from 1d6d5a8 to 1efc76b Compare August 19, 2026 20:00
@Mr-Bossman

Copy link
Copy Markdown
Contributor Author

Mr-Bossman and others added 2 commits August 25, 2026 15:11
Adds functionality to set up a NVME port in marginal state.
This is useful for testing the behavior of the NVME driver when a port
is in a marginal state.

Signed-off-by: Jesse Taube <jtaubepe@redhat.com>
Reviewed-by: John Meneghini <jmeneghi@redhat.com>
Tested-by: John Meneghini <jmeneghi@redhat.com>
---
V1 -> V2:
 - Added john's review and test-by tags
 - Use != instead of ! ==
 - Wrap lines over 80col
V2 -> V3:
 - No change
Add tests/nvme/070 to test various multipath and marginal port
scenarios, while confirming the port useage and state. This test is
intended to emulate receiving an FPIN event in a multipath environment.

Co-authored-by: John Menehgini <jmeneghi@redhat.com>
Signed-off-by: Jesse Taube <jtaubepe@redhat.com>
Signed-off-by: John Meneghini <jmeneghi@redhat.com>
Tested-by: John Meneghini <jmeneghi@redhat.com>
---
V1 -> V2:
 - Add John's tags
 - Add _rport_check_use_opt
 - Add _rport_is_not_in_use to allow for checking with a timeout
 - Add _rport_num_in_use - Wrap lines over 80col
 - Add timeout functionality to _rport_is_marginal, is_online,
     in_use.
 - Fix path state setup to have one optimized and one non-optimized port
     for each host
 - Fix test_set_all_marginal to correctly check non-numa iopolicy
 - Remove _rport_check_opt as it was redundant
 - Rename _rport_optimized to _rport_is_optimized
 - Skip test if /sys/class/fcloop/ctl/set_marginal_rport does not exist
 - Use grep --quiet instead of grep -q
 - Use local -a for arrays
V2 -> V3:
 - Add tests for inaccessable paths
 - Fix fio not exiting
 - Move generic code to common/nvme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant