v1: https://lore.kernel.org/netdev/2026…@gmail.com/ v1 serialized per peer with a mutex hashed on proposal fields. Mahanta asked what a duplicate link group costs and said he would rather see the exact fix. The Sashiko bot found the hash reading the IP prefix area as a gid for an SMCv1 proposal. v2 drops the hash and takes the exact route. To answer the question in the archive: a duplicate link group is harmless for correctness, because the ACCEPT carries first_contact_local and the client creates a matching group, and because a group at max_conns already makes the server create siblings today. It is not free in resources: lgr_cnt is a counter and not a cap, and an idle server group is held SMC_LGR_FREE_DELAY_SERV, 600 seconds. The series grew to four patches because of the bot's other point. Patch 4 takes the whole of smc_listen_rdma_finish() out from under the global mutex, including the first-contact ADD_LINK phase, and a joining connection of the same peer can then block on rmbs_lock or llc_conf_mutex with no timeout while holding that mutex. Patches 1 and 2 bound the flow it would be waiting on, so they come first. Patch 3 fills a new link's peer gid and mac at creation, which patch 4 needs because the new match compares them before the CONFIRM arrives. Patches 1 and 2 stand alone and fix the High issue the bot raised on v1 as pre-existing. Ermenson Junior (4): net/smc: bound the SMC-Rv1 add-link rkey exchange net/smc: check the ADD_LINK_CONT send result in the server rkey exchange net/smc: set a new link's peer gid and mac at creation net/smc: drop smc_server_lgr_pending across the CLC CONFIRM wait net/smc/af_smc.c | 46 ++++++++--- net/smc/smc_core.c | 191 +++++++++++++++++++++++++++++++++++++++++++++ net/smc/smc_core.h | 21 +++++ net/smc/smc_llc.c | 58 ++++++++++++-- net/smc/smc_llc.h | 7 ++ 5 files changed, 304 insertions(+), 19 deletions(-)
-- 2.43.0