From: "J. Bruce Fields" <bfields@fieldses.org>
To: Nikolay Borisov <kernel@kyup.com>
Cc: Pavel Emelyanov <xemul@virtuozzo.com>,
Jeff Layton <jlayton@poochiereds.net>,
Andrey Vagin <avagin@openvz.org>,
containers@lists.linux-foundation.org,
linux-kernel@vger.kernel.org, ebiederm@xmission.com,
linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk
Subject: Re: [PATCH v2] locks: Filter /proc/locks output on proc pid ns
Date: Wed, 3 Aug 2016 11:06:31 -0400 [thread overview]
Message-ID: <20160803150631.GA3789@fieldses.org> (raw)
In-Reply-To: <57A20702.3040805@kyup.com>
On Wed, Aug 03, 2016 at 06:00:18PM +0300, Nikolay Borisov wrote:
>
>
> On 08/03/2016 05:54 PM, Pavel Emelyanov wrote:
> > On 08/03/2016 05:17 PM, Nikolay Borisov wrote:
> >>
> >>
> [SNIP]
> >>
> >> [CCing some people from openvz/CRIU]
> >
> > Thanks :)
> >
> >> My train of thought was "we should have means which would be the one
> >> universal truth about everything and this would be a process in the
> >> init_pid_ns". I don't have strong preference as long as I'm not breaking
> >> userspace. As I said before - I think the CRIU guys might be using that
> >> interface.
> >
> > This particular change won't break us mostly because we've switched to
> > reading the /proc/pid/fdinfo/n files for locks.
>
> [thinking out loud here]
>
> I've never actually looked into those files but now that I have it seems
> to make sense to also switch 'lsof' to actually reading the locks from
> the available pids directories rather than relying on the global
> /proc/locks interface. Oh well :)
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.
--b.
>
> [/thinking out loud here]
>
> >
> > -- Pavel
> >
> >>>
> >>>>>> + && (proc_pidns != ns_of_pid(fl->fl_nspid)))
> >>>>> + return 0;
> >>>> +
> >>>>> lock_get_status(f, fl, iter->li_pos, "");
> >>>>
> >>>>> list_for_each_entry(bfl, &fl->fl_block, fl_block)
> >>>
> >> .
> >>
> >
> > _______________________________________________
> > Containers mailing list
> > Containers@lists.linux-foundation.org
> > https://lists.linuxfoundation.org/mailman/listinfo/containers
> >
next prev parent reply other threads:[~2016-08-03 15:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-02 14:42 [RFC PATCH] locks: Show only file_locks created in the same pidns as current process Nikolay Borisov
2016-08-02 14:45 ` Nikolay Borisov
2016-08-02 15:05 ` J. Bruce Fields
2016-08-02 15:20 ` Nikolay Borisov
2016-08-02 15:43 ` J. Bruce Fields
2016-08-02 16:00 ` Eric W. Biederman
2016-08-02 17:40 ` J. Bruce Fields
2016-08-02 19:09 ` Eric W. Biederman
2016-08-02 19:44 ` J. Bruce Fields
2016-08-02 20:01 ` Jeff Layton
2016-08-02 20:11 ` Nikolay Borisov
2016-08-02 20:34 ` J. Bruce Fields
2016-08-03 7:35 ` [PATCH v2] locks: Filter /proc/locks output on proc pid ns Nikolay Borisov
2016-08-03 13:46 ` Jeff Layton
2016-08-03 14:17 ` Nikolay Borisov
2016-08-03 14:28 ` J. Bruce Fields
2016-08-03 14:33 ` Nikolay Borisov
2016-08-03 14:54 ` Pavel Emelyanov
2016-08-03 15:00 ` Nikolay Borisov
2016-08-03 15:06 ` J. Bruce Fields [this message]
2016-08-03 15:10 ` Nikolay Borisov
2016-08-03 17:35 ` Eric W. Biederman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160803150631.GA3789@fieldses.org \
--to=bfields@fieldses.org \
--cc=avagin@openvz.org \
--cc=containers@lists.linux-foundation.org \
--cc=ebiederm@xmission.com \
--cc=jlayton@poochiereds.net \
--cc=kernel@kyup.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
--cc=xemul@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).