Re: [PATCH] locks: new procfs lockinfo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux