Linux NFS development
 help / color / mirror / Atom feed
* [PATCH 1/1] nfs-utils: nfsdctl: dont ignore rdma listener return
@ 2025-02-13 15:47 Olga Kornievskaia
  2025-02-13 16:00 ` Chuck Lever
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Olga Kornievskaia @ 2025-02-13 15:47 UTC (permalink / raw)
  To: steved; +Cc: linux-nfs, Olga Kornievskaia

Don't ignore return code of adding rdma listener. If nfs.conf has asked
for "rdma=y" but adding the listener fails, don't ignore the failure.
Note in soft-rdma-provider environment (such as soft iwarp, soft roce),
when no address-constraints are used, an "any" listener is created and
rdma-enabling is done independently.

Fixes: e3b72007ab31 ("nfs-utils: nfsdctl: cleanup listeners if some failed")
Signed-off-by: Olga Kornievskaia <okorniev@redhat.com>
---
 utils/nfsdctl/nfsdctl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils/nfsdctl/nfsdctl.c b/utils/nfsdctl/nfsdctl.c
index 05fecc71..244910ef 100644
--- a/utils/nfsdctl/nfsdctl.c
+++ b/utils/nfsdctl/nfsdctl.c
@@ -1388,7 +1388,7 @@ static int configure_listeners(void)
 			if (tcp)
 				ret = add_listener("tcp", n->field, port);
 			if (rdma)
-				add_listener("rdma", n->field, rdma_port);
+				ret = add_listener("rdma", n->field, rdma_port);
 			if (ret)
 				return ret;
 		}
@@ -1398,7 +1398,7 @@ static int configure_listeners(void)
 		if (tcp)
 			ret = add_listener("tcp", "", port);
 		if (rdma)
-			add_listener("rdma", "", rdma_port);
+			ret = add_listener("rdma", "", rdma_port);
 	}
 	return ret;
 }
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-03-19 19:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-13 15:47 [PATCH 1/1] nfs-utils: nfsdctl: dont ignore rdma listener return Olga Kornievskaia
2025-02-13 16:00 ` Chuck Lever
2025-02-13 17:30   ` Olga Kornievskaia
2025-02-14 14:23     ` Chuck Lever
2025-02-14 15:38       ` Olga Kornievskaia
2025-02-14 15:42         ` Chuck Lever
2025-02-14 15:58           ` Olga Kornievskaia
2025-02-14 16:00 ` Jeff Layton
2025-03-19 19:48 ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox