]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
RDMA/addr: Change addr_wq back to unordered workqueue
authorSurabhi Gogte <sgogte@purestorage.com>
Fri, 10 Apr 2026 00:15:49 +0000 (18:15 -0600)
committerLeon Romanovsky <leon@kernel.org>
Sun, 10 May 2026 10:41:32 +0000 (06:41 -0400)
Commit 5fff41e1f89d ("IB/core: Fix race condition in resolving IP to MAC")
changed the workqueue "addr_wq" to a single-threaded wq.
Commit e19c0d237873 ("RDMA/rdma_cm: Remove process_req and timer sorting")
eliminated global work and started using per-req work.
Now we no longer have the race, change "addr_wq" back to multi-threaded
workqueue to speed up multiple addr resolutions.

Signed-off-by: Surabhi Gogte <sgogte@purestorage.com>
Link: https://patch.msgid.link/20260410001549.3149060-1-sgogte@purestorage.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/addr.c

index a40a765f0307288775365272ee418edcb150ec28..9f6f03f4120480e032172415d4968e413426ae67 100644 (file)
@@ -850,7 +850,7 @@ static struct notifier_block nb = {
 
 int addr_init(void)
 {
-       addr_wq = alloc_ordered_workqueue("ib_addr", 0);
+       addr_wq = alloc_workqueue("ib_addr", WQ_UNBOUND, 0);
        if (!addr_wq)
                return -ENOMEM;