diff options
| author | 2026-07-13 07:41:24 -0400 | |
|---|---|---|
| committer | 2026-07-13 07:41:24 -0400 | |
| commit | 0d5618c1b2fc9dd4fc086f0226acd8a077ab6c1b (patch) | |
| tree | 097954948d7a61d087bb660fe4579aea81a6a09d /scripts/Makefile.thinlto | |
| parent | RDMA/hfi1: Drop device data from hfi1_validate_rcvhdrcnt() (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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
