From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97D34C43603 for ; Fri, 13 Dec 2019 07:38:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7611C2077B for ; Fri, 13 Dec 2019 07:38:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725913AbfLMHiw (ORCPT ); Fri, 13 Dec 2019 02:38:52 -0500 Received: from relay.sw.ru ([185.231.240.75]:43538 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbfLMHiw (ORCPT ); Fri, 13 Dec 2019 02:38:52 -0500 Received: from dhcp-172-16-24-104.sw.ru ([172.16.24.104]) by relay.sw.ru with esmtp (Exim 4.92.3) (envelope-from ) id 1iffWS-0004Zi-Kb; Fri, 13 Dec 2019 10:38:00 +0300 Subject: Re: [PATCH net-next v2 0/2] unix: Show number of scm files in fdinfo To: David Miller Cc: netdev@vger.kernel.org, axboe@kernel.dk, pankaj.laxminarayan.bharadiya@intel.com, keescook@chromium.org, viro@zeniv.linux.org.uk, hare@suse.com, tglx@linutronix.de, edumazet@google.com, arnd@arndb.de References: <157588565669.223723.2766246342567340687.stgit@localhost.localdomain> <20191212.170506.1014670344797867509.davem@davemloft.net> From: Kirill Tkhai Message-ID: <57b6c0a4-285e-e429-2e87-41b5079974e1@virtuozzo.com> Date: Fri, 13 Dec 2019 10:37:59 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191212.170506.1014670344797867509.davem@davemloft.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 13.12.2019 04:05, David Miller wrote: > From: Kirill Tkhai > 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. Thanks, David.