linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Davidlohr Bueso <dave@gnu.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "J. Bruce Fields" <bfields@fieldses.org>,
	Matthew Wilcox <matthew@wil.cx>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>,
	lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] locks: export device name
Date: Thu, 16 Feb 2012 23:37:11 +0100	[thread overview]
Message-ID: <1329431831.2753.3.camel@offbook> (raw)
In-Reply-To: <20120215123929.6888c867.akpm@linux-foundation.org>

On Wed, 2012-02-15 at 12:39 -0800, Andrew Morton wrote:
> On Wed, 15 Feb 2012 07:42:30 -0500
> "J. Bruce Fields" <bfields@fieldses.org> wrote:
> 
> > > > Perhaps safest would be to replace /proc/locks by another interface and
> > > > deprecate this one.
> > > 
> > > If exporting the name in the current /proc/locks file is out of the
> > > question, then IMHO I don't think it would be worth adding a new
> > > interface just for such a small change.
> > 
> > OK.
> > 
> > If you want to just change this over, I guess the thing to do would be
> > to stick something in feature-removal-schedule.txt saying "we'll switch
> > this in 2 years" (or however long you think before there are
> > realistically no more lslk users left), then do it then.
> > 
> > Switching to a new api would be better as we could warn users of the old
> > api then.  Maybe it'd be worth it if there was some other change we'd
> > been wanting to make?   Can't think of anything off the top of my head.
> > 
> > We may be adding more lock types--will lslk and lslocks handle that
> > gracefully?
> 
> Adding a whole new interface is pretty attractive.  It lets us get it
> right this time.  In particular, something which is extensible given
> certain simple rules.  As we've learned, the current /proc/locks didn't
> get that right!

Ok, however I'm a bit confused on what you mean by extensible; since
what we decide to export to userspace is pretty much permanent, how can
we change (extend) it later? We'd pretty much be running into
the /proc/locks situation now.

> 
> We can eventually remove the old code - it may take longer than two
> years, but whatever.  If we go this way, we should arrange for the
> kernel to emit a warning (printk_once) into the logs the first time
> someone accesses the old file.  This will help to prompt people to
> migrate off the deprecated interface.  After a while, we can add a
> config option to make the old interface go away.  Distros will start to
> disable the feature.  Later, we zap it altogether.

Kind if like what was done with the /proc/x/oom_adj interface.


  reply	other threads:[~2012-02-16 22:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-10 21:06 [PATCH] locks: export device name Davidlohr Bueso
2012-02-14  0:34 ` Andrew Morton
2012-02-14 19:09   ` J. Bruce Fields
2012-02-15 10:52     ` Davidlohr Bueso
2012-02-15 12:42       ` J. Bruce Fields
2012-02-15 20:39         ` Andrew Morton
2012-02-16 22:37           ` Davidlohr Bueso [this message]
2012-02-16 22:59             ` Andrew Morton

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=1329431831.2753.3.camel@offbook \
    --to=dave@gnu.org \
    --cc=akpm@linux-foundation.org \
    --cc=bfields@fieldses.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew@wil.cx \
    /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).