lkml.org 
[lkml]   [2012]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] locks: new procfs lockinfo
On Mon, 20 Feb 2012 12:30:54 +0100
Davidlohr Bueso <dave@gnu.org> wrote:

> From: Davidlohr Bueso <dave@gnu.org>
>
> Based on our previous discussion https://lkml.org/lkml/2012/2/10/462 we came to
> agree on deprecating the current /proc/locks in favor of a more extensible interface.
> The new /proc/lockinfo file exports similar information - except instead of maj:min the
> device name is shown - and entries are formated like those in /proc/cpuinfo, allowing us
> to add new entries without breaking userspace.

Looks pretty good to me. A few things..

The above text doesn't really explain why we're adding the new procfs
file. What's wrong with the current format and why do we need a new
file? The basic rationale for changing the kernel is the most
important part of the whole patch, and it's missing!

Also, there's no description here of the new format. Ideally it will
be documented, perhaps in Documentation/filesystems/proc.txt. If not
that then it should at least be *fully* described in the changelog,
along with examples. Because if we can't clearly see the proposed
format, how can we review the patch?


I'd also like to see some discussion of the namespace side of things.
How do namespaces play with locks? Mainly pid namespaces, I guess. Is
it possible to look at the output and determine which namespace a lock
belongs to? Does that even make sense? I don't know what our
long-term plan is for namespaces-versus-locks, but whatever it is, this
new interface should be designed to work well with it.



\
 
 \ /
  Last update: 2012-02-21 22:09    [W:0.054 / U:0.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site