]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Merge branch 'unix-Show-number-of-scm-files-in-fdinfo'
authorDavid S. Miller <davem@davemloft.net>
Fri, 13 Dec 2019 01:04:55 +0000 (17:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Dec 2019 01:04:55 +0000 (17:04 -0800)
commit545a6822993f1228552097aa21a6dd9f90514e68
treee7a0f84416fbb8b900c24d2d063a2eac6be9513f
parent6b8350a4b0d58cfee39368e5cf6c67369d59b629
parent3c32da19a858fb1ae8a76bf899160be49f338506
Merge branch 'unix-Show-number-of-scm-files-in-fdinfo'

Kirill Tkhai says:

====================
unix: Show number of scm files in fdinfo

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
====================

Signed-off-by: David S. Miller <davem@davemloft.net>