Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp180845yba; Wed, 17 Apr 2019 22:33:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8YLlI6nEW3st4u2POOVXIxlgCMQspOIpodLEA+Mfm24irxogf12vFmjGT6o9LxRgaXGoV X-Received: by 2002:a17:902:e391:: with SMTP id ch17mr95211555plb.196.1555565615372; Wed, 17 Apr 2019 22:33:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555565615; cv=none; d=google.com; s=arc-20160816; b=jYHx0RXrxRBQwg7Gr19n+bNS3Lu1D4Se3Z50e2o26i5MCamv6Q/tNkA+xtj0OKkLn5 lXosnak0T9bH6R2z47wLQbCQoap/WJOzNTg8vsoLCW1u/5aviBjZp6LUhJXZEOi9iqGx +mKPskg6hEuAqiH1g1/iZH939xS3RVS+9RSDtHv06aiyhoYCD8g6E12RsnNh465qxQes P7PvCg83AqtLgKmEeE53/cxxGKFKJzPLjiPkY6uu2BPcQ2BzK5ut9wg2fvPwQKJyc6S5 rw8/UAXH2DjauZfLUNXKB1DXi39dO9dD3QJ43oz/7/RGRHIsUMpAZ1wVc291cNB1oJiG XPAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=uCEr+a/7qmOowUSKAVZ8MVxR5nbDFnIsBrUVX47xCoA=; b=yClVjWA19GPyK54D3CFBeDAP8H/VYUwteGU7SMuS4klm/LlxWYAqjCYFbm9sgDdcO7 JSKaNxgoBqF+dswOpmF8b5D92qKFvC1NHsYxO6U8H+NemaJ7Ia4BzaquxE+rCqImjp5P UtagS/mHquQxemRSkffhUUH+E5FEdcXeb8breWvL17wOjYBjfwOzlJoD6GzWH+yv8qwI PluIUNTTN9JyHST0xvsHPv5yTJhGJ/S3uzRr0RvsHY0NFYcWXEpos7c7J4Pp4ON1oh7d t7YiUhlPDhiv12svbOmJ3nxiuWuR1CAYNxK3j4zrpqP3FSdovhq1LbS0hyMlX/wsS0DN fPQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3si1172847plb.176.2019.04.17.22.33.20; Wed, 17 Apr 2019 22:33:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731661AbfDRFbF (ORCPT + 99 others); Thu, 18 Apr 2019 01:31:05 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:28905 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbfDRFbF (ORCPT ); Thu, 18 Apr 2019 01:31:05 -0400 X-IronPort-AV: E=Sophos;i="5.60,364,1549926000"; d="scan'208";a="379127868" Received: from abo-75-106-68.mrs.modulonet.fr (HELO hadrien) ([85.68.106.75]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Apr 2019 07:31:02 +0200 Date: Thu, 18 Apr 2019 07:31:02 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Bjorn Helgaas cc: Sebastian Andrzej Siewior , kbuild-all@01.org, Kurt Schwemmer , Logan Gunthorpe , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Kirill Smelkov Subject: Re: [PATCH] pci/switchtec: fix stream_open.cocci warnings (fwd) In-Reply-To: <20190417215420.GV126710@google.com> Message-ID: References: <20190417215420.GV126710@google.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > To: kbuild@01.org > > Cc: Julia Lawall > > Subject: [PATCH] pci/switchtec: fix stream_open.cocci warnings > > > > CC: kbuild-all@01.org > > TO: Sebastian Andrzej Siewior > > CC: Kurt Schwemmer > > CC: Logan Gunthorpe > > CC: Bjorn Helgaas > > CC: linux-pci@vger.kernel.org > > CC: linux-kernel@vger.kernel.org > > > > From: kbuild test robot > > > > 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 > > 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. julia > > Bjorn > > > --- > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.0.y-rt-rebase > > head: 794c294ae4483c240429c25a0d18e272e92c94de > > commit: 8a29a3bae2a2dfb0116cd8791d9700515d6e765e [154/311] pci/switchtec: Don't use completion's wait queue > > :::::: branch date: 7 hours ago > > :::::: commit date: 7 hours ago > > > > Please take the patch only if it's a positive warning. Thanks! > > > > switchtec.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > --- a/drivers/pci/switch/switchtec.c > > +++ b/drivers/pci/switch/switchtec.c > > @@ -392,7 +392,7 @@ static int switchtec_dev_open(struct ino > > return PTR_ERR(stuser); > > > > filp->private_data = stuser; > > - nonseekable_open(inode, filp); > > + stream_open(inode, filp); > > > > dev_dbg(&stdev->dev, "%s: %p\n", __func__, stuser); > > >