don't open-code kernel_accept() in rds_tcp_accept_one()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 13 Jul 2025 18:01:34 +0000 (19:01 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Jul 2025 23:19:54 +0000 (16:19 -0700)
commit5cc7fce3493c8627c74260de5b2479da6d508277
treec88fc832324ed9e79cb9c0956a81ba37e3e93fa8
parentc34632dbb29ba7016f1cd2e629ac9dd07f84ce50
don't open-code kernel_accept() in rds_tcp_accept_one()

rds_tcp_accept_one() starts with a pretty much verbatim
copy of kernel_accept().  Might as well use the real thing...

That code went into mainline in 2009, kernel_accept()
had been added in Aug 2006, the copyright on rds/tcp_listen.c
is "Copyright (c) 2006 Oracle", so it's entirely possible
that it predates the introduction of kernel_accept().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://patch.msgid.link/20250713180134.GC1880847@ZenIV
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/rds/tcp_listen.c