Skip to contentSkip to conversation

common: Replace _have_module() with _have_driver()

PATCH In review Xiao Yang 4 participants 9 messages May 10, 2023 – May 24, 2023 Block layer

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 common: Replace _have_module() with _have_driver()

nvmeof-mp and srp test groups can be executed with built-in scsi_dh_alua, scsi_dh_emc and scsi_dh_rdac drivers.

---
 tests/nvmeof-mp/rc | 7 ++++---
 tests/srp/rc       | 6 +++---
 2 files changed, 7 insertions(+), 6 deletions(-)
tests/nvmeof-mp/rc +4 -3
index 4f4d518..0771497 100755
@@ -26,6 +26,10 @@ group_requires() {
 
 	_have_configfs || return
 
+	_have_driver scsi_dh_alua
+	_have_driver scsi_dh_emc
+	_have_driver scsi_dh_rdac
+
 	_have_module dm_multipath
 	_have_module dm_queue_length
 	_have_module dm_service_time
@@ -36,9 +40,6 @@ group_requires() {
 	_have_module nvme-rdma
 	_have_module nvmet-rdma
 	_have_module rdma_rxe
-	_have_module scsi_dh_alua
-	_have_module scsi_dh_emc
-	_have_module scsi_dh_rdac
 
 	for p in mkfs.ext4 mkfs.xfs multipath multipathd pidof rdma fio; do
 		_have_program "$p" || return
tests/srp/rc +3 -3
index fb3a113..252fd0c 100755
@@ -37,6 +37,9 @@ group_requires() {
 	fi
 	_have_driver sd_mod
 	_have_driver sg
+	_have_driver scsi_dh_alua
+	_have_driver scsi_dh_emc
+	_have_driver scsi_dh_rdac
 
 	_have_module dm_multipath
 	_have_module dm_queue_length
@@ -50,9 +53,6 @@ group_requires() {
 	_have_module rdma_cm
 	_have_module rdma_rxe
 	_have_module scsi_debug
-	_have_module scsi_dh_alua
-	_have_module scsi_dh_emc
-	_have_module scsi_dh_rdac
 	_have_module target_core_iblock
 	_have_module target_core_mod
 
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · Xiao Yang

nvmeof-mp and srp test groups can be executed with built-in scsi_dh_alua, scsi_dh_emc and scsi_dh_rdac drivers.

---

we might remove nvmeof-mp, so not sure if that part is needed, let's wait for others to reply ..

-ck

#2 lore raw
Quoted 2 lines · Chaitanya Kulkarni

we might remove nvmeof-mp, so not sure if that part is needed, let's wait for others to reply ..

Hi CK,

Thanks for your feedback.
Could you tell me why nvmeof-mp will be removed? Is there any URL about the decision?

Best Regards,
Xiao Yang

#3 lore raw
Quoted 11 lines · Xiao Yang (Fujitsu)
Quoted 2 lines · Chaitanya Kulkarni

we might remove nvmeof-mp, so not sure if that part is needed, let's wait for others to reply ..

Hi CK,

Thanks for your feedback.
Could you tell me why nvmeof-mp will be removed? Is there any URL about the decision?

Best Regards,
Xiao Yang

We talked about this in the LSFMM, I hope to see lwn article covering blktests session ..

-ck

#4 lore raw
Quoted 10 lines · Chaitanya Kulkarni
Quoted 9 lines · Xiao Yang (Fujitsu)
Quoted 2 lines · Chaitanya Kulkarni

we might remove nvmeof-mp, so not sure if that part is needed, let's wait for others to reply ..

Hi CK,

Thanks for your feedback.
Could you tell me why nvmeof-mp will be removed? Is there any URL about the decision?

Quoted 5 lines
Quoted 2 lines

Best Regards,
Xiao Yang

We talked about this in the LSFMM, I hope to see lwn article covering blktests session ..

I think a couple of those test might make sense to be migrated to the nvme suite. I am thinking about the test with simulate_network_failure_loop.

#5 lore raw
Quoted 11 lines · Daniel Wagner
Quoted 10 lines · Chaitanya Kulkarni
Quoted 9 lines · Xiao Yang (Fujitsu)
Quoted 2 lines · Chaitanya Kulkarni

we might remove nvmeof-mp, so not sure if that part is needed, let's wait for others to reply ..

Hi CK,

Thanks for your feedback.
Could you tell me why nvmeof-mp will be removed? Is there any URL about the decision?

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

Best Regards,
Xiao Yang

We talked about this in the LSFMM, I hope to see lwn article covering blktests session ..

Yes, the conclusion at LSFMM was to remove nvmeof-mp test group, since dm- multipath for NVME devices is no longer recommended.

Xiao, could you repost your patch to cover only srp?

Quoted 3 lines

I think a couple of those test might make sense to be migrated to the nvme suite. I am thinking about the test with simulate_network_failure_loop.

It does not sound reasonable to keep dm-multipath tests in nvme group. I guess you mean to reuse the simulate_network_failure_loop not to test dm-multipath but to test nvme fabrics transports, right?

#6 lore raw
Quoted 6 lines · Shinichiro Kawasaki
Quoted 2 lines

I think a couple of those test might make sense to be migrated to the nvme suite. I am thinking about the test with simulate_network_failure_loop.

It does not sound reasonable to keep dm-multipath tests in nvme group. I guess you mean to reuse the simulate_network_failure_loop not to test dm-multipath but to test nvme fabrics transports, right?

Correct. I think it would be good to carry over the network failure testing for the fabrics transport test in the nvme group. I can look into this next week.