From: Bjorn Helgaas <helgaas@kernel.org>
To: Kirill Smelkov <kirr@nexedi.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
kbuild-all@01.org, Kurt Schwemmer <kurt.schwemmer@microsemi.com>,
Logan Gunthorpe <logang@deltatee.com>,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pci/switchtec: fix stream_open.cocci warnings (fwd)
Date: Thu, 18 Apr 2019 07:37:30 -0500 [thread overview]
Message-ID: <20190418123730.GX126710@google.com> (raw)
In-Reply-To: <20190418103755.GA14294@deco.navytux.spb.ru>
On Thu, Apr 18, 2019 at 10:38:02AM +0000, Kirill Smelkov wrote:
> On Thu, Apr 18, 2019 at 07:31:02AM +0200, Julia Lawall wrote:
> > On Wed, 17 Apr 2019, Bjorn Helgaas wrote:
> > > On Sat, Apr 13, 2019 at 06:50:57PM +0200, Julia Lawall wrote:
> > > > Hello,
> > > >
> > > > Kirill will explain about this issue.
> > > >
> > > > julia
> > > >
> > > > ---------- Forwarded message ----------
> > > > Date: Sat, 13 Apr 2019 11:22:51 +0800
> > > > From: kbuild test robot <lkp@intel.com>
> > > > To: kbuild@01.org
> > > > Cc: Julia Lawall <julia.lawall@lip6.fr>
> > > > Subject: [PATCH] pci/switchtec: fix stream_open.cocci warnings
> > > >
> > > > CC: kbuild-all@01.org
> > > > TO: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> > > > CC: Kurt Schwemmer <kurt.schwemmer@microsemi.com>
> > > > CC: Logan Gunthorpe <logang@deltatee.com>
> > > > CC: Bjorn Helgaas <helgaas@kernel.org>
> > > > CC: linux-pci@vger.kernel.org
> > > > CC: linux-kernel@vger.kernel.org
> > > >
> > > > From: kbuild test robot <lkp@intel.com>
> > > >
> > > > drivers/pci/switch/switchtec.c:395:1-17: ERROR: switchtec_fops: .read() can deadlock .write(); change nonseekable_open -> stream_open to fix.
> > > >
> > > > Generated by: scripts/coccinelle/api/stream_open.cocci
> > > >
> > > > Fixes: 8a29a3bae2a2 ("pci/switchtec: Don't use completion's wait queue")
> > > > Signed-off-by: kbuild test robot <lkp@intel.com>
> > >
> > > Based on Kirill's subsequent email saying this is already queued to
> > > the merge window, I assume I need to do nothing here.
> > >
> > > I think a signed-off-by from a robot, i.e., not from a real person, is
> > > meaningless, and I don't think I would personally accept it. It's
> > > certainly OK to indicate that a patch was auto-generated, but I think
> > > a real person still needs to take responsibility for it.
> > >
> > > Documentation/process/submitting-patches.rst says it must contain a
> > > real name (no pseudonyms or anonymous contributions), and I don't
> > > think a robot fits in the spirit of that.
> > >
> > > I see that
> > > https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/commit/?id=8a29a3bae2a2
> > > (mentioned below) does have a good signed-off-by from Sebastian, but
> > > that's not *this* patch, so I don't know what's what.
> >
> > Normally, for these robot generated patches, when I approve them, I put my
> > own sign off, but under the robot one, since the robot has put a From
> > line. In this case, I handed the problem off to Kirill, so I didn't do
> > that. I agree that it would be good for Kirill to sign off on it.
>
> Just for the reference: I have put my signature on the mass converstion
> patch as well as ack's that were received:
>
> https://lab.nexedi.com/kirr/linux/commit/edaeb4101860
Looks good, thanks. Feel free to add my
Acked-by: Bjorn Helgaas <bhelgaas@google.com> [drivers/pci/switch/switchtec]
to the https://lab.nexedi.com/kirr/linux/commit/edaeb4101860 patch.
It looks like maybe the commit log could use
s/and the reset were/and the rest were/
It also mentions "the previous patch" a couple times, which may lose
some of its meaning depending on how things get merged into git. If
that previous patch has already been merged, a SHA1 reference would be
more specific.
I would personally split that into two patches: one to avoid the
potential deadlocks and a second to do the "safe to change to
stream_open" changes. It seems like the first is more serious and
urgent while the second is more of a cleanup. Then you could
streamline the commit logs by including a single diagnostic and
omitting the entire list of files.
But that's all bike-shedding and I'm totally fine with this as-is.
Bjorn
next prev parent reply other threads:[~2019-04-18 12:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-13 16:50 [PATCH] pci/switchtec: fix stream_open.cocci warnings (fwd) Julia Lawall
2019-04-13 16:56 ` Logan Gunthorpe
2019-04-13 17:01 ` Kirill Smelkov
2019-04-15 14:38 ` Sebastian Andrzej Siewior
2019-04-15 14:55 ` Kirill Smelkov
2019-04-15 15:20 ` Sebastian Andrzej Siewior
2019-04-15 15:41 ` Kirill Smelkov
2019-04-17 21:54 ` Bjorn Helgaas
2019-04-18 5:31 ` Julia Lawall
2019-04-18 10:38 ` Kirill Smelkov
2019-04-18 12:37 ` Bjorn Helgaas [this message]
2019-04-18 14:42 ` Kirill Smelkov
[not found] <alpine.DEB.2.20.1906191227430.3726@hadrien>
2019-06-19 16:27 ` Kirill Smelkov
2019-06-19 19:47 ` Logan Gunthorpe
2019-06-19 20:19 ` Bjorn Helgaas
2019-06-19 20:21 ` Julia Lawall
2019-06-20 7:01 ` kirr
2019-06-20 7:01 ` kirr
2019-06-21 16:42 ` Sebastian Andrzej Siewior
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=20190418123730.GX126710@google.com \
--to=helgaas@kernel.org \
--cc=bigeasy@linutronix.de \
--cc=julia.lawall@lip6.fr \
--cc=kbuild-all@01.org \
--cc=kirr@nexedi.com \
--cc=kurt.schwemmer@microsemi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=logang@deltatee.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.