From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikolay Borisov Subject: Re: [PATCHv4] locks: Filter /proc/locks output on proc pid ns Date: Thu, 4 Aug 2016 17:34:12 +0300 Message-ID: <57A35264.2030205@kyup.com> References: <1470148943-21835-1-git-send-email-kernel@kyup.com> <1470295588-9803-1-git-send-email-kernel@kyup.com> <1470310175.22052.3.camel@poochiereds.net> <874m707hhm.fsf@x220.int.ebiederm.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <874m707hhm.fsf-JOvCrm2gF+uungPnsOpG7nhyD016LWXt@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Eric W. Biederman" , Jeff Layton Cc: bfields-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Nikolay Borisov List-Id: containers.vger.kernel.org On 08/04/2016 05:09 PM, Eric W. Biederman wrote: > - In lock_get_status the code should say: > if (fl->fl_nspid) { > /* Don't let fl_pid change depending on who is reading the file */ > fl_pid = pid_nr_ns(fl->fl_nspid, proc_pidns); > /* If there isn't a fl_pid don't display who is waiting on the lock */ > if (fl_pid == 0) > return; > } else { Shall I fold this into my patch and resend or would you prefer this change to be a separate patch ?