Re: [PATCH] locks: new procfs lockinfo
From: Andrew Morton
Date: Tue Feb 21 2012 - 16:06:24 EST
On Mon, 20 Feb 2012 12:30:54 +0100
Davidlohr Bueso <dave@xxxxxxx> wrote:
> From: Davidlohr Bueso <dave@xxxxxxx>
>
> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/