summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2019-02-07 08:41:49 +0300
committerJason Gunthorpe <jgg@mellanox.com>2019-02-09 02:56:45 +0300
commitd45f89d59bcd42d6b8575d0af69d7a3a98e73bb6 (patch)
tree7e2eab55760501c53c2ac750bb65e74cdd0a6026 /tools/perf/scripts/python
parentb34b269ad85d7dd4a512487f2395c3be3e40f76a (diff)
downloadlinux-d45f89d59bcd42d6b8575d0af69d7a3a98e73bb6.tar.xz
RDMA/device: Call ib_cache_release_one() only from ib_device_release()
Instead of complicated logic about when this memory is freed, always free it during device release(). All the cache pointers start out as NULL, so it is safe to call this before the cache is initialized. This makes for a simpler error unwind flow, and a simpler understanding of the lifetime of the memory allocations inside the struct ib_device. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions