From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH RFC] btrfs: introduce procfs interface for the device list
Date: Wed, 1 Oct 2014 23:09:21 +0000 (UTC) [thread overview]
Message-ID: <pan$56f59$ca416b0$a4aced24$3de99e6e@cox.net> (raw)
In-Reply-To: 1412172552.9583.0@mail.thefacebook.com
Chris Mason posted on Wed, 01 Oct 2014 10:09:12 -0400 as excerpted:
>>> We're going to have a really hard time getting a new proc interface
>>> merged in, and after we've recently fixed up all (most?) of our sysfs
>>> races, I'd rather not have to do it all over again with /proc.
>>
>> This does not use fsid/devid based file-directory. So races as were in
>> sysfs implementation does not apply here. (But there are
>> opportunity
>> to optimize the code at the place mentioned in the code as todo).
>
> Right, proc has different races ;) Again the bar for new interfaces in
> proc is really very high. It's not the direction the rest of the kernel
> is using.
Put differently...
Proc has fallen out of favor as an early experiment in virtual filesystem
kernel interfaces that ran amok due to lack of governing rules at the
time and is effectively legacy/deprecated. From this viewpoint the most
simple explanation for its continued existence is Linus' "prime
directive" that you don't break userspace -- being the primary/only
kernel/userspace virtual filesystem interface for quite some time,
there's a *LOT* of stuff that depends on proc, and despite what many
might want, it's not going to disappear overnight.
That's the kind of resistance you're looking at to get something new in
proc. Basically, it's not going to happen.
So as Chris recommends, go tilt at a different windmill. Getting this
one to move is going to require moving heaven and hell both, and it's
just not worth it.
Sys does have stricter rules, but they are there for a reason, to ensure
the mistakes that were made with proc don't get made with sys as well.
That's the accepted place to put stuff that might have, in an earlier
time, gone into proc, but now following the rules for sys, of course.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
prev parent reply other threads:[~2014-10-01 23:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <11967020-23659-1-git-send-email-anand.jain@oracle.com>
2014-09-29 5:09 ` [PATCH RFC] btrfs: introduce procfs interface for the device list Anand Jain
2014-09-30 14:23 ` Chris Mason
2014-10-01 7:41 ` Anand Jain
2014-10-01 14:09 ` Chris Mason
2014-10-01 23:09 ` Duncan [this message]
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='pan$56f59$ca416b0$a4aced24$3de99e6e@cox.net' \
--to=1i5t5.duncan@cox.net \
--cc=linux-btrfs@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.