diff options
| author | Jason Gunthorpe <[email protected]> | 2021-06-02 13:27:02 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2021-06-02 15:41:57 -0300 |
| commit | 4b4e586ebe37c8c7e2a4bf46dc4b742756fd788d (patch) | |
| tree | bdab0dbe2836a5a61c1d1ef340e182a300479ddc /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 96376a40959e32502208210c62e68a6c60acfb48 (diff) | |
IB/cm: Split cm_alloc_msg()
This is being used with two quite different flows, one attaches the
message to the priv and the other does not.
Ensure the message attach is consistently done under the spinlock and
ensure that the free on error always detaches the message from the
cm_id_priv, also always under lock.
This makes read/write to the cm_id_priv->msg consistently locked and
consistently NULL'd when the message is freed, even in all error paths.
Link: https://lore.kernel.org/r/f692b8c89eecb34fd82244f317e478bea6c97688.1622629024.git.leonro@nvidia.com
Signed-off-by: Mark Zhang <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions