aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-02-13 12:18:36 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-02-15 14:59:46 -0700
commitd9dc7a3500a58de9bf3861d1a96ffeab42624b4f (patch)
tree65f2a21bdbfc8171e89f8e656d1a8c0d416702de /tools/perf/scripts/python/export-to-sqlite.py
parent4d39a959bc1f3d164b5a54147fdeb19f84b1ed58 (diff)
IB/uverbs: Hold the uobj write lock after allocate
This clarifies the design intention that time between allocate and commit has the uobj exclusive to the caller. We already guarantee this by delaying publishing the uobj pointer via idr_insert, fd_install, list_add, etc. Additionally holding the usecnt lock during this period provides extra clarity and more protection against future mistakes. Fixes: 3832125624b7 ("IB/core: Add support for idr types") Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions