RDS: Add a debug message suggesting to load transport modules
authorAndy Grover <andy.grover@oracle.com>
Fri, 21 Aug 2009 12:28:35 +0000 (12:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Aug 2009 02:13:14 +0000 (19:13 -0700)
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>
net/rds/bind.c

index c17cc39..5d95fc0 100644 (file)
@@ -187,6 +187,9 @@ int rds_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
        if (trans == NULL) {
                ret = -EADDRNOTAVAIL;
                rds_remove_bound(rs);
+               if (printk_ratelimit())
+                       printk(KERN_INFO "RDS: rds_bind() could not find a transport, "
+                               "load rds_tcp or rds_rdma?\n");
                goto out;
        }