linux-parisc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Grant Grundler <grundler@parisc-linux.org>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Grant Grundler <grundler@parisc-linux.org>,
	kyle@mcmartin.ca, akpm@linux-foundation.org,
	linux-parisc@vger.kernel.org
Subject: Re: [PATCH] parisc: convert /proc/pdc/{lcd,led} to seq_file
Date: Sat, 28 Nov 2009 22:17:52 -0700	[thread overview]
Message-ID: <20091129051752.GA14332@lackof.org> (raw)
In-Reply-To: <20091128092509.GA4375@x200.malnet.ru>

On Sat, Nov 28, 2009 at 12:25:09PM +0300, Alexey Dobriyan wrote:
> On Fri, Nov 27, 2009 at 11:13:54PM -0700, Grant Grundler wrote:
> > On Fri, Nov 27, 2009 at 09:51:12AM +0300, Alexey Dobriyan wrote:
> > > Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> > 
> > No commit comment?
> 
> No, subject says it's all.

The subject line says what the patch does, not why you wrote the patch.
Your comments below are an example of what I was looking for.

> 
> > > -	ent = create_proc_entry("led", S_IFREG|S_IRUGO|S_IWUSR, proc_pdc_root);
> > > +	ent = proc_create_data("led", S_IRUGO|S_IWUSR, proc_pdc_root,
> > > +				&led_proc_fops, (void *)LED_NOLCD); /* LED */
> > 
> > Documentation/filesystems/seq_file.txt says to use create_proc_entry().
> > I couldn't find any documentation on proc_create_data().
> > Is this really the preferred API?
> 
> Yes, it's slightly less racy than create_proc_entry().
> create_proc_entry() is going to be removed in fact.

Ok. Please add a sentence about which race you are worried about.
This isn't to discuss the race - it's just informative to explain
why there is a plan to replace the API. I'm willing to go along with
that.

Are you removing create_proc_entry() ? Is this patch part of a grand plan?
(All good things to include in a commit comment)

Also updating Documentation/filesystems/seq_file.txt would be very
helpful given you understand why proc_create_data() should replace
create_proc_entry().

thanks!
grant

  parent reply	other threads:[~2009-11-29  5:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-27  6:51 [PATCH] parisc: convert /proc/pdc/{lcd,led} to seq_file Alexey Dobriyan
2009-11-28  6:13 ` Grant Grundler
2009-11-28  9:25   ` Alexey Dobriyan
2009-11-28 14:45     ` James Bottomley
2009-11-29  5:17     ` Grant Grundler [this message]
2009-12-01 22:07       ` Andrew Morton
2009-12-05  0:39         ` Alexey Dobriyan

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=20091129051752.GA14332@lackof.org \
    --to=grundler@parisc-linux.org \
    --cc=adobriyan@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=kyle@mcmartin.ca \
    --cc=linux-parisc@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 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).