summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@nvidia.com>2026-07-13 07:41:24 -0400
committerLeon Romanovsky <leonro@nvidia.com>2026-07-13 07:41:24 -0400
commit0d5618c1b2fc9dd4fc086f0226acd8a077ab6c1b (patch)
tree097954948d7a61d087bb660fe4579aea81a6a09d /tools/perf/scripts/python
parent4ebd241071af81dd75db31a96b7bd0f79b5e0813 (diff)
RDMA/hfi1: Create workqueues before device initialization
create_workqueues() only needs fields set up by hfi1_alloc_devdata(). Call it before hfi1_init_dd() so a workqueue allocation failure happens before chip resources are initialized. To keep the reordered error paths safe, make init_one() own hfi1_devdata. hfi1_init_dd() unwinds its partial setup but leaves the allocation for the caller to free. If device initialization fails, destroy the workqueues before freeing the device data. Link: https://patch.msgid.link/20260708-clean-init-one-hfi1-v1-6-b9e9641268a5@nvidia.com Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions