[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <157312863230.4594.18421480718399996953.stgit@localhost.localdomain>
Date: Thu, 07 Nov 2019 15:14:15 +0300
From: Kirill Tkhai <ktkhai@...tuozzo.com>
To: davem@...emloft.net, pankaj.laxminarayan.bharadiya@...el.com,
keescook@...omium.org, viro@...iv.linux.org.uk, hare@...e.com,
tglx@...utronix.de, ktkhai@...tuozzo.com, edumazet@...gle.com,
arnd@...db.de, axboe@...nel.dk, netdev@...r.kernel.org
Subject: [PATCH 0/2] unix: Show number of scm files in fdinfo
Unix sockets like a block box. You never know what is pending there:
there may be a file descriptor holding a mount or a block device,
or there may be whole universes with namespaces, sockets with receive
queues full of sockets etc.
The patchset makes number of pending scm files be visible in fdinfo.
This may be useful to determine, that socket should be investigated
or which task should be killed to put reference counter on a resourse.
---
Kirill Tkhai (2):
net: Allow to show socket-specific information in /proc/[pid]/fdinfo/[fd]
unix: Show number of pending scm files of receive queue in fdinfo
include/linux/net.h | 1 +
include/net/af_unix.h | 5 ++++
net/socket.c | 12 +++++++++++
net/unix/af_unix.c | 56 +++++++++++++++++++++++++++++++++++++++++++++----
4 files changed, 69 insertions(+), 5 deletions(-)
--
Signed-off-by: Kirill Tkhai <ktkhai@...tuozzo.com>
Powered by blists - more mailing lists