Thadeu Lima de Souza Cascardo
a0c6ffbcfe
rds_rdma: don't assume infiniband device is PCI
...
RDS code assumes that the struct ib_device dma_device member, which is a
pointer, points to a struct device embedded in a struct pci_dev.
This is not the case for ehca, for example, which is a OF driver, and
makes dma_device point to a struct device embedded in a struct
platform_device.
This will make the system crash when rds_rdma is loaded in a system
with ehca, since it will try to access the bus member of a non-existent
struct pci_dev.
The only reason rds_rdma uses the struct pci_dev is to get the NUMA node
the device is attached to. Using dev_to_node for that is much better,
since it won't assume which bus the infiniband is attached to.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Cc: dledford@redhat.com
Cc: Jes.Sorensen@redhat.com
Cc: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
Acked-by: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-05-29 17:30:07 -04:00
..
af_rds.c
rds: Make rds_sock_lock BH rather than IRQ safe.
2012-01-24 17:03:44 -05:00
bind.c
cong.c
net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modules
2011-10-31 19:30:30 -04:00
connection.c
net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modules
2011-10-31 19:30:30 -04:00
ib.c
net: Fix files explicitly needing to include module.h
2011-10-31 19:30:28 -04:00
ib.h
rds_rdma: don't assume infiniband device is PCI
2012-05-29 17:30:07 -04:00
ib_cm.c
RDS: use gfp flags from caller in conn_alloc()
2012-03-22 19:29:58 -04:00
ib_rdma.c
net, rds, Replace xlist in net/rds/xlist.h with llist
2011-09-15 15:36:32 -04:00
ib_recv.c
Merge branch 'kmap_atomic' of git://github.com/congwang/linux
2012-03-21 09:40:26 -07:00
ib_ring.c
ib_send.c
ib_stats.c
ib_sysctl.c
net: Convert all sysctl registrations to register_net_sysctl
2012-04-20 21:22:30 -04:00
info.c
rds: remove the second argument of k[un]map_atomic()
2012-03-20 21:48:28 +08:00
info.h
iw.c
net: Fix files explicitly needing to include module.h
2011-10-31 19:30:28 -04:00
iw.h
iw_cm.c
RDS: use gfp flags from caller in conn_alloc()
2012-03-22 19:29:58 -04:00
iw_rdma.c
RDS: Remove some unused iWARP code
2012-01-12 20:05:28 -08:00
iw_recv.c
Merge branch 'kmap_atomic' of git://github.com/congwang/linux
2012-03-21 09:40:26 -07:00
iw_ring.c
iw_send.c
iw_stats.c
iw_sysctl.c
net: Convert all sysctl registrations to register_net_sysctl
2012-04-20 21:22:30 -04:00
Kconfig
rds: drop "select LLIST"
2011-11-14 00:10:50 -05:00
loop.c
RDS: use gfp flags from caller in conn_alloc()
2012-03-22 19:29:58 -04:00
loop.h
Makefile
message.c
net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modules
2011-10-31 19:30:30 -04:00
page.c
net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modules
2011-10-31 19:30:30 -04:00
rdma.c
rdma_transport.c
net: Fix files explicitly needing to include module.h
2011-10-31 19:30:28 -04:00
rdma_transport.h
rds.h
rds: remove the second argument of k[un]map_atomic()
2012-03-20 21:48:28 +08:00
recv.c
rds: remove the second argument of k[un]map_atomic()
2012-03-20 21:48:28 +08:00
send.c
Remove printk from rds_sendmsg
2012-03-20 16:12:11 -04:00
stats.c
net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modules
2011-10-31 19:30:30 -04:00
sysctl.c
net: Convert all sysctl registrations to register_net_sysctl
2012-04-20 21:22:30 -04:00
tcp.c
net: Fix files explicitly needing to include module.h
2011-10-31 19:30:28 -04:00
tcp.h
tcp_connect.c
tcp_listen.c
sock: Introduce named constants for sk_reuse
2012-04-21 15:52:25 -04:00
tcp_recv.c
rds: remove the second argument of k[un]map_atomic()
2012-03-20 21:48:28 +08:00
tcp_send.c
tcp_stats.c
net: rds: fix const array syntax
2011-07-01 16:16:19 -07:00
threads.c
net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modules
2011-10-31 19:30:30 -04:00
transport.c