[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191212.170506.1014670344797867509.davem@davemloft.net>
Date: Thu, 12 Dec 2019 17:05:06 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: ktkhai@...tuozzo.com
Cc: netdev@...r.kernel.org, axboe@...nel.dk,
pankaj.laxminarayan.bharadiya@...el.com, keescook@...omium.org,
viro@...iv.linux.org.uk, hare@...e.com, tglx@...utronix.de,
edumazet@...gle.com, arnd@...db.de
Subject: Re: [PATCH net-next v2 0/2] unix: Show number of scm files in
fdinfo
From: Kirill Tkhai <ktkhai@...tuozzo.com>
Date: Mon, 09 Dec 2019 13:03:34 +0300
> v2: Pass correct argument to locked in patch [2/2].
>
> 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 a reference counter on a resourse.
>
> $cat /proc/[pid]/fdinfo/[unix_sk_fd] | grep scm_fds
> scm_fds: 1
Series applied.
Powered by blists - more mailing lists