xprt_rdma_connect_worker(9)
π xprt_rdma_connect_worker(9) β the kernel API manual, but make it make sense π
okay bestie, so this one lives in the Kernel API Manual (yes, the kernel has a manual, she's iconic like that) and it's all about setting up an RDMA connection in the background β like when you order food and then go about your life instead of staring at the app. literally that energy. β¨
β¨ NAME β¨
xprt_rdma_connect_worker β establish connection in the background π¦
like, the whole point. connect, but off to the side, no drama in the main thread.
πΈ SYNOPSIS πΈ
void xprt_rdma_connect_worker (struct work_struct *work );
that's it. that's the whole signature. she's short and she knows it. π
π ARGUMENTS π
workβ worker thread context π§΅ (this is your little work-item carry-on bag: everything the worker needs to know it's this job, bestie.)
π DESCRIPTION π
so here's the vibe check on what actually goes down:
The requester holds the xprt's send lock π β not in a toxic way, in a "nobody touch this transport while we're mid-connection, thanks" way. That lock is literally there to prevent activity on this transport while a fresh connection is being established. no cap, that's the whole reason.
Meanwhile all the RPC tasks are justβ¦ sleeping π΄ on the xprt's pending queue, waiting for the connect to complete. like a group chat where everyone's left on read until the link comes up. then they all wake up and start spamming requests. iconic behavior honestly. π«Ά
ngl the key thing to internalize: connection setup happens in the background, the send lock guards the transport during it, and the queued RPC tasks are asleep the whole time. π
π SEE ALSO π
- Kernel file
./net/sunrpc/xprtrdma/transport.cβ the source, go read her, she's right there π xprt_rdma_inject_disconnect(9)xprt_rdma_destroy(9)xprt_setup_rdma(9)xprt_rdma_close(9)xprt_rdma_set_port(9)xprt_rdma_timer(9)xprt_rdma_set_connect_timeout(9)xprt_rdma_connect(9)xprt_rdma_alloc_slot(9)xprt_rdma_free_slot(9)xprt_rdma_allocate(9)xprt_rdma_free(9)xprt_rdma_send_request(9)
that's the whole friend group. they all show up to the function together. slay. π₯
okay and finally β the little footer moment π: this whole page comes from ./net/sunrpc/xprtrdma and it's dated October 2026. save the date, bestie π. go forth and connect in the background. periodt. π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms