linux/drivers/infiniband/hw
Jason Gunthorpe e355477ed9 net/mlx5: Make mlx5_cmd_exec_cb() a safe API
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.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
2019-01-24 14:25:26 +02:00
..
bnxt_re cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
cxgb3 cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
cxgb4 cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
hfi1 cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
hns cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
i40iw cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
mlx4 4.21 merge window pull request 2018-12-28 14:57:10 -08:00
mlx5 net/mlx5: Make mlx5_cmd_exec_cb() a safe API 2019-01-24 14:25:26 +02:00
mthca cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
nes 4.21 merge window pull request 2018-12-28 14:57:10 -08:00
ocrdma cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
qedr cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
qib Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
usnic IB/usnic: Fix potential deadlock 2018-12-19 16:30:16 -07:00
vmw_pvrdma cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00