Re: [PATCH rdma-next 12/13] RDMA/hfi1: Initialize debugfs after probe completes

From: Kalesh Anakkur Purayil

Date: Thu Jul 09 2026 - 05:06:38 EST


On Wed, Jul 8, 2026 at 4:20 PM Leon Romanovsky <leon@xxxxxxxxxx> wrote:
>
> From: Leon Romanovsky <leonro@xxxxxxxxxx>
>
> Commit ed6f653fe430 ("staging/rdma/hfi1: Fix debugfs access race") moved
> debugfs creation after device initialization and IB registration so users
> cannot access the files before the driver is ready. However, init_one()
> still creates them before character device creation and SDMA startup
> finish.
>
> Move hfi1_dbg_ibdev_init() to the end of the successful probe path,
> matching hfi1_dbg_ibdev_exit() as the first action in remove_one().
>
> Fixes: ed6f653fe430 ("staging/rdma/hfi1: Fix debugfs access race")
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>

Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@xxxxxxxxxxxx>


--
Regards,
Kalesh AP

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature