Hi Mahanta, Thanks for the review. On Thu, Dec 03, 2026, Mahanta Jambigi wrote:
> 1. Say why shutdown() cannot race. [...] > 2. Spell out the queue locking while it is walked unlocked. [...]
Agreed on both. I checked them against the code: smc_shutdown() returns -ENOTCONN before smc_close_active() for SMC_LISTEN, and the only callers of smc_close_non_accepted() pass sockets created for incoming connections. smc_accept_dequeue() also walks accept_q without accept_q_lock, so the "nothing is added" part depends on the state check that 185a4caeecab put under the listen lock. v2 adds both points and the backport dependency to the changelog; the code stays the same.
> One minor thing, not for this patch: after this change the > lock_sock_nested(sk, SINGLE_DEPTH_NESTING) in smc_release() no longer > describes a child-lock nesting for listeners.
Right, I will leave that for a separate cleanup. Thanks, Jiayi