freebsd-dev/sys/dev/mlx5/mlx5_ib
Hans Petter Selasky 7eefcb5eea Make mlx5_cmd_exec_cb() a safe API in mlx5core.
APIs that have deferred callbacks should have some kind of cleanup
function that callers can use to fence the callbacks. Otherwise things
like module unloading can lead to dangling function pointers, or worse.

The IB MR code is the only place that calls this function and had a
really poor attempt at creating this fence. Provide a good version in
the core code as future patches will add more places that need this
fence.

Linux commit:
e355477ed9e4f401e3931043df97325d38552d54

MFC after:	1 week
Sponsored by:	Mellanox Technologies // NVIDIA Networking
2020-11-16 10:15:03 +00:00
..
mlx5_ib_ah.c
mlx5_ib_cong.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
mlx5_ib_cq.c Report EQE data upon CQ completion in mlx5core. 2020-11-16 10:10:53 +00:00
mlx5_ib_doorbell.c
mlx5_ib_gsi.c
mlx5_ib_mad.c
mlx5_ib_main.c Report EQE data upon CQ completion in mlx5core. 2020-11-16 10:10:53 +00:00
mlx5_ib_mem.c
mlx5_ib_mr.c Make mlx5_cmd_exec_cb() a safe API in mlx5core. 2020-11-16 10:15:03 +00:00
mlx5_ib_qp.c Fix error handling order in create_kernel_qp in mlx5ib. 2020-11-16 10:00:21 +00:00
mlx5_ib_srq.c
mlx5_ib_virt.c
mlx5_ib.h Make mlx5_cmd_exec_cb() a safe API in mlx5core. 2020-11-16 10:15:03 +00:00