mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@redhat.com>
To: libc-alpha <libc-alpha@sourceware.org>,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: "Carlos O'Donell" <carlos@redhat.com>,
	Michael Kerrisk <mtk.manpages@gmail.com>,
	Michael Kerrisk-manpages <mtk.manpages@googlemail.com>,
	samba-technical@lists.samba.org,
	nfs-ganesha-devel@lists.sourceforge.net
Subject: should we change the name/macros of file-private locks?
Date: Wed, 16 Apr 2014 14:57:46 -0400	[thread overview]
Message-ID: <20140416145746.66b7441c@tlielax.poochiereds.net> (raw)

Sorry to spam so many lists, but I think this needs widespread
distribution and consensus.

File-private locks have been merged into Linux for v3.15, and *now*
people are commenting that the name and macro definitions for the new
file-private locks suck.

...and I can't even disagree. They do suck.

We're going to have to live with these for a long time, so it's
important that we be happy with the names before we're stuck with them.

Michael Kerrisk suggested several names but I think the only one that
doesn't have other issues is "file-associated locks", which can be
distinguished against "process-associated" locks (aka classic POSIX
locks).

At the same time, he suggested that we rename the command macros since
the 'P' suffix would no longer be relevant. He suggested something like
this:

    F_FA_GETLK
    F_FA_SETLK
    F_FA_SETLKW

That would also make them more visually distinguishable from the
classic F_GETLK/F_SETLK/F_SETLKW commands. I like that change in
particular, as the original macros names would be easy to typo.

I think we'd also need to rename how these are reported in /proc/locks.
Currently they have a type label of "FLPVT". I'd suggest that we
change that to "FASSOC". For v3.15, this is the only part we'd
absolutely have to change before it ships. The rest I can fix up in
v3.16.

Does this sound like a reasonable set of changes to make? Does anyone
else have a better set of names they can suggest? Speak now, or forever
hold your peace!

-- 
Jeff Layton <jlayton@redhat.com>

             reply	other threads:[~2014-04-16 18:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-16 18:57 Jeff Layton [this message]
2014-04-16 20:00 ` Michael Kerrisk (man-pages)
2014-04-16 20:16   ` Jeremy Allison
2014-04-17  0:31     ` Re: [Nfs-ganesha-devel] " Jim Lieb
2014-04-17  5:43       ` Michael Kerrisk (man-pages)
2014-04-16 22:42   ` Stefan (metze) Metzmacher
2014-04-17 11:52     ` Jeff Layton
2014-04-17 12:04       ` Michael Kerrisk (man-pages)
2014-04-17 20:08         ` Michael Kerrisk (man-pages)
2014-04-17 23:47           ` Jeff Layton
2014-04-17 15:17       ` Stefan (metze) Metzmacher

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=20140416145746.66b7441c@tlielax.poochiereds.net \
    --to=jlayton@redhat.com \
    --cc=carlos@redhat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    --cc=mtk.manpages@googlemail.com \
    --cc=nfs-ganesha-devel@lists.sourceforge.net \
    --cc=samba-technical@lists.samba.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®