Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp649021yba; Sat, 13 Apr 2019 09:57:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgj6zO6AsnHAPxuwCEbGFcuDq25e5kVMftd91TijFLi+xvkgi7m2Vm8et3UZiZd4+F6Scx X-Received: by 2002:a17:902:1124:: with SMTP id d33mr40812780pla.268.1555174660497; Sat, 13 Apr 2019 09:57:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555174660; cv=none; d=google.com; s=arc-20160816; b=Mbp7iWzq4LaJQl4eLdh3eqztfpnWLDvTcCPjG8MVAVNHT+1E9q+kmvDtLV5RaRPyBW JK1W670xRy/qC/pW7S2FSf/ClSGAoXjKoS4eGZWbG7WmE3KT6fjUp01CvHJpFTmOyZKE C2e62ntzWTyAXzfnWcWDTAeHT6dzTBtqR30g+LMl9+4C0+RnMcNGurI1f+51vHfrTMk/ rt8Skq5NR65KBZuWruUX/3tT8/+r5rcuOyYVpTUXCDYhv5NQ0TyZ3N8bfQkS6OxwLwOT 4LGLBVKlJtWWqrhtE+ndcW48Af/d1fyYPFkAwuaZvguU3Q+agV40sKvI97/kGhbPi7bC 4HGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to; bh=dXAG/M5Olwavs36nwHfKNB6KrhC2f+Cb79xgZ554SQ0=; b=uvNjeTNk9aVqmgIy904rqkq69DZDv5LgjTRDbHJW78tEEYsxUouJrIP7XxMMxJ0hXE 2BHOpipkDVFcX8sDNO9jxWRAFrwmpKzqiHELPv9GByTcVLJoXKaAtBjhKKRiY/RzE60u QvNsUHuwLXw3URyOSAH9L4W4tAAw1LEHLVLJuUvuZmBiQp10Yd3jbr2JqoydD//CR59j h2noB1zxxWp2VQdR4nycmkDsrfEwyDAoIEcLuY6ptI0FcsSeQuqZRoBA3V+/EVNCZ3kH SsjjRyF46l3ejxjsz3/ZKAKdSeselwU5dX0lfYfmr7U2hN3/wGhuPcd3Wmsx79pojhL8 fDAA== 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 cv8si42493811plb.326.2019.04.13.09.57.24; Sat, 13 Apr 2019 09:57:40 -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 S1727494AbfDMQ4m (ORCPT + 99 others); Sat, 13 Apr 2019 12:56:42 -0400 Received: from ale.deltatee.com ([207.54.116.67]:45418 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727256AbfDMQ4l (ORCPT ); Sat, 13 Apr 2019 12:56:41 -0400 Received: from s0106602ad0811846.cg.shawcable.net ([68.147.191.165] helo=[192.168.0.12]) by ale.deltatee.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hFLxI-00007e-70; Sat, 13 Apr 2019 10:56:41 -0600 To: Julia Lawall , Sebastian Andrzej Siewior Cc: kbuild-all@01.org, Kurt Schwemmer , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Kirill Smelkov References: From: Logan Gunthorpe Message-ID: <306cc455-0506-6561-c4ad-95478e106161@deltatee.com> Date: Sat, 13 Apr 2019 10:56:37 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 68.147.191.165 X-SA-Exim-Rcpt-To: kirr@nexedi.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, helgaas@kernel.org, kurt.schwemmer@microsemi.com, kbuild-all@01.org, bigeasy@linutronix.de, julia.lawall@lip6.fr X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH] pci/switchtec: fix stream_open.cocci warnings (fwd) X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-04-13 10:50 a.m., Julia Lawall wrote: > Hello, > > Kirill will explain about this issue. I'm aware of this effort and Acked Kirill's original monolithic patch. So, for this patch: Acked-by: Logan Gunthorpe 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 > --- > > 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); >