From: Alison Schofield <amsfield22@gmail.com>
To: Anchal Jain <anchalj109@gmail.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>,
Greg KH <gregkh@linuxfoundation.org>,
Jonathan Cameron <jic23@kernel.org>,
outreachy-kernel <outreachy-kernel@googlegroups.com>
Subject: Re: [Outreachy kernel] Re: [PATCH v4 ] staging: iio: cdc: ad7150: add comment to mutex
Date: Sun, 2 Oct 2016 11:16:32 -0700 [thread overview]
Message-ID: <20161002181631.GA2819@d830.WORKGROUP> (raw)
In-Reply-To: <CAAbeOSv3x=ef+CxeGk11hiTMaeiRdzqrEPgiyMfpxg0St2H-qw@mail.gmail.com>
Anchal,
I'm seeing that Greg doesn't have confidence in the comment added
to the mutex. So, let's build his confidence. That would mean
elaborating in the changelog a 'why' that shows that you did your
due diligence, studied where the lock is used and came up with
this comment.
Having said all that, in this case, and in another one you did or
attempted, a comment was already present, just not in the place
that checkpatch wants it.
So, a 'cheat' on this one would be to simply state that in the
changelog. ie. Copied the comment from the structure header to the
structure body to appease checkpatch.
BUT - rather than taking the cheat alone, follow up with a study of
the code so that you can make a meaningful comment in the changelog.
Now, if your study matches the comment - you know you understand it.
You do a few of those, then you move onto ones that don't have the
comment to compare.
The comment is important, because someone changing the code is going
to wonder if they need to take that lock and look at the comment.
If there is no comment, there going to go off and figure it out. If
there is a comment, they may rely on the comment. We don't want to
lead them astray.
I think on this one, you did all the above and I probably led you
astray by suggesting a simplification of your changelog.
If you want to try again, I'm game!
alisons
next prev parent reply other threads:[~2016-10-02 18:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-02 15:34 [PATCH v4 ] staging: iio: cdc: ad7150: add comment to mutex Anchal Jain
2016-10-02 15:40 ` Greg KH
2016-10-02 15:45 ` Anchal Jain
2016-10-02 15:53 ` [Outreachy kernel] " Julia Lawall
2016-10-02 16:21 ` Anchal Jain
2016-10-02 18:16 ` Alison Schofield [this message]
2016-10-02 18:25 ` Alison Schofield
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=20161002181631.GA2819@d830.WORKGROUP \
--to=amsfield22@gmail.com \
--cc=anchalj109@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jic23@kernel.org \
--cc=julia.lawall@lip6.fr \
--cc=outreachy-kernel@googlegroups.com \
/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.