af_unix: Show number of inflight fds for sockets in TCP_LISTEN state too
authorKirill Tkhai <tkhai@ya.ru>
Tue, 16 Aug 2022 21:51:54 +0000 (00:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Aug 2022 10:34:54 +0000 (11:34 +0100)
commitde43708924438fac2b0c04b099d50e3b523a5817
treed2b4809e29d55978fe421da885aafb7433c9e3fe
parent917edfb98c480fec1dce95ece6707779905ca0b5
af_unix: Show number of inflight fds for sockets in TCP_LISTEN state too

TCP_LISTEN sockets is a special case. They preserve skb with a newly
connected sock till accept() makes it fully functional socket.
Receive queue of such socket may grow after connected peer
send messages there. Since these messages may contain scm_fds,
we should expose correct fdinfo::scm_fds for listening socket too.

Signed-off-by: Kirill Tkhai <tkhai@ya.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c