freebsd-skq/sys/dev/mthca
Hans Petter Selasky 1866c98e64 Infiniband clients must be attached and detached in a specific order in ibcore.
Currently the linking order of the infiniband, IB, modules decide in which
order the clients are attached and detached. For example one IB client may
use resources from another IB client. This can lead to a potential deadlock
at shutdown. For example if the ipoib is unregistered after the ib_multicast
client is detached, then if ipoib is using multicast addresses a deadlock may
happen, because ib_multicast will wait for all its resources to be freed before
returning from the remove method.

Fix this by using module_xxx_order() instead of module_xxx().

Differential Revision:	https://reviews.freebsd.org/D23973
MFC after:		1 week
Sponsored by:		Mellanox Technologies
2020-07-06 08:50:11 +00:00
..
mthca_allocator.c
mthca_av.c
mthca_catas.c
mthca_cmd.c
mthca_cmd.h
mthca_config_reg.h
mthca_cq.c
mthca_dev.h
mthca_doorbell.h
mthca_eq.c
mthca_mad.c
mthca_main.c
mthca_mcg.c
mthca_memfree.c
mthca_memfree.h
mthca_mr.c
mthca_pd.c
mthca_profile.c
mthca_profile.h
mthca_provider.c
mthca_provider.h
mthca_qp.c
mthca_reset.c
mthca_srq.c
mthca_uar.c
mthca_user.h
mthca_wqe.h