diff options
author | Andy Grover <andy.grover@oracle.com> | 2009-08-21 08:28:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-23 22:13:14 -0400 |
commit | f2c449320d547bd5c281649eb1d99afb20765144 (patch) | |
tree | c08124ad81cd651db262c789af3f9702cee306c6 /net/rds | |
parent | 335776bd696a6bf95134baf8ad95847371e4d5f6 (diff) |
RDS: Add a debug message suggesting to load transport modules
Now that RDS transports are no longer compiled-in to RDS core,
there is now the possibility that they will not be loaded. This
adds a helpful suggestion when rds_bind() fails to find a transport.
Signed-off-by: Andy Grover <andy.grover@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds')
-rw-r--r-- | net/rds/bind.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/rds/bind.c b/net/rds/bind.c index c17cc39160c..5d95fc007f1 100644 --- a/net/rds/bind.c +++ b/net/rds/bind.c | |||
@@ -187,6 +187,9 @@ int rds_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) | |||
187 | if (trans == NULL) { | 187 | if (trans == NULL) { |
188 | ret = -EADDRNOTAVAIL; | 188 | ret = -EADDRNOTAVAIL; |
189 | rds_remove_bound(rs); | 189 | rds_remove_bound(rs); |
190 | if (printk_ratelimit()) | ||
191 | printk(KERN_INFO "RDS: rds_bind() could not find a transport, " | ||
192 | "load rds_tcp or rds_rdma?\n"); | ||
190 | goto out; | 193 | goto out; |
191 | } | 194 | } |
192 | 195 | ||