From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757960AbcHCPLL (ORCPT ); Wed, 3 Aug 2016 11:11:11 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:36033 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757814AbcHCPK4 (ORCPT ); Wed, 3 Aug 2016 11:10:56 -0400 Subject: Re: [PATCH v2] locks: Filter /proc/locks output on proc pid ns To: "J. Bruce Fields" References: <1470148943-21835-1-git-send-email-kernel@kyup.com> <1470209710-30022-1-git-send-email-kernel@kyup.com> <1470232012.18285.4.camel@poochiereds.net> <57A1FCE5.3040206@kyup.com> <57A205BE.3070202@virtuozzo.com> <57A20702.3040805@kyup.com> <20160803150631.GA3789@fieldses.org> Cc: Pavel Emelyanov , Jeff Layton , Andrey Vagin , containers@lists.linux-foundation.org, linux-kernel@vger.kernel.org, ebiederm@xmission.com, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk From: Nikolay Borisov Message-ID: <57A2097C.7060206@kyup.com> Date: Wed, 3 Aug 2016 18:10:52 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <20160803150631.GA3789@fieldses.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/03/2016 06:06 PM, J. Bruce Fields wrote: > Digging around... Oh, I see, there's an optional 'lock:..' line in > /proc/[pid]/fdinfo/[pid] file, is that what you're looking at? I'd > forgotten. Yeah, maybe that would make more sense long term. Yep, that's the one but this requires the userspace to be updated to use that interface. In the meantime we could do away with some maintenance of the existing /proc/locks :)