diff options
| author | Jason Gunthorpe <[email protected]> | 2019-01-18 16:33:10 -0800 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2019-01-24 14:25:26 +0200 |
| commit | e355477ed9e4f401e3931043df97325d38552d54 (patch) | |
| tree | 66e4737120f301838503d0cc8cd197ffabc85196 /tools/perf/scripts/python/sctop.py | |
| parent | 73f5a82bb3c9fce550da4a74a32b8cb064b50663 (diff) | |
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 <[email protected]>
Signed-off-by: Yishai Hadas <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions