Re: [PATCH] RDMA/rxe: Replace use of system_unbound_wq with system_dfl_wq

From: Leon Romanovsky

Date: Tue Mar 17 2026 - 12:24:52 EST


On Tue, Mar 17, 2026 at 03:32:01PM +0100, Marco Crivellari wrote:
> On Mon, Mar 16, 2026 at 9:13 PM Leon Romanovsky <leon@xxxxxxxxxx> wrote:
> > [...]
> > I recall earlier efforts to replace system workqueues with per‑driver queues,
> > because unloading a driver forces a flush of the entire system workqueue,
> > which is undesirable for overall system behavior.
> >
> > Wouldn't it be better to introduce a local workqueue here and use that instead?
> >
> > Thanks
>
> Hi,
>
> There is only this wq here. But we can do so if needed, no problem.
>
> Where do you think is the most appropriate place for the workqueue struct
> declaration? Like `struct prefetch_mr_work` maybe?
>
> Do you have suggestions for an appropriate place to allocate the workqueue?

Actually, RXE already have one workqueue in rxe_alloc_wq(), just use it.

Thanks

>
> Thanks!
>
> --
>
> Marco Crivellari
>
> L3 Support Engineer