Re: [PATCH 1/2] RDMA/ionic: Fix XArray initialization to use XArray flags

From: Leon Romanovsky

Date: Tue Sep 29 2026 - 14:46:02 EST



On Fri, 25 Sep 2026 15:06:37 +0530, Abhijit Gangurde wrote:
> xa_init_flags() takes XArray flags (XA_FLAGS_*), not gfp flags, even
> though the parameter is typed gfp_t. Passing GFP_ATOMIC leaves both
> lock-type bits clear, so xa_lock_type() resolves to XA_LOCK_NORMAL for
> qp_tbl and cq_tbl.
>
> Both tables are used with the IRQ-safe accessors: xa_store_irq() with
> GFP_KERNEL from process context, and xa_lock_irqsave() from the event
> queue path. When a store needs to grow the tree, __xas_nomem() drops
> the lock using the recorded lock type before allocating:
>
> [...]

Applied, thanks!

[1/2] RDMA/ionic: Fix XArray initialization to use XArray flags
https://git.kernel.org/rdma/rdma/c/2eca9c14e66a1f
[2/2] RDMA/ionic: Fix double removal of CMB mmap entries in create QP error path
https://git.kernel.org/rdma/rdma/c/485effd117d031

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>