Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1064256ybi; Wed, 19 Jun 2019 12:49:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOFcO5I/1Kyt1SUpRu0ImSGk+BmjOZzOAYFuVzt5/50qnhvsNto8oGjy38V5bQtSa8/zL9 X-Received: by 2002:a17:90a:a00d:: with SMTP id q13mr12770950pjp.80.1560973768620; Wed, 19 Jun 2019 12:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560973768; cv=none; d=google.com; s=arc-20160816; b=SkNdLT0/QgJkyid0btpRuajth/mqWhnxWPwI7TmR3BRhTPy69XDWzG02hT20uEq4iX RiNwWV24rAjp+1Sve0vOt99Ud2kUabRU8gu2iTZ4fL7aVScrmv1TDaIxzV5aX6e654gK FXsQzVaU05T5ZgpaaWIjmMTl2yVQ6OQT5joO0jz3dW9xmnB68GVio6t6qoy6IRF8bB7p bMa0uib4MNf+wPoKkkZLgIYDjrqIMD3apfhX8kexdWkeWSKwj2sJJc3wrG9KMawAJuVR xATzOiAiTv7y/wOtqujb6xwLMLtp5odlomvggNea/VLoCapwMCW++ZxlPwhTz0cvc/uu /5vA== 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=k+Pt/jYhNp2kzT/5TDYMPF8+SMpzSMbZs0YsZiZD0Oo=; b=fe9RyVxZ2pB/UGFSBznc/+lN7f1NcfALSn/fZCCSh8y6XwUyVIW0MIa6k6u1v/xKjZ J+bHwPfEQt2B+9CxmrjQHM5AfRQJIz+Lm0XZDkH3NyJXKf62+xoSJmrz17o0FXnL4ABj g5YuNBx1B2h0mQu8vhm+kmTV74I8ebFRlhpFLydBt7ZzKmHuuPWLfWQhVhYyVa0H6wSa lpQ1dgLuQ7F5dZHxDDMtAQPbqFWQ7d5mgZmVYdjKYfYGPvrhH4EfVBvIPvIQHDCadK05 d9cHYSQoZQrScuMPgnKmKYARt6PRmlHLxLS/5Csw1YMiTYeg6gjCKqagpE/usxROLVud IC3Q== 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 cj11si16783102plb.373.2019.06.19.12.49.12; Wed, 19 Jun 2019 12:49:28 -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 S1730074AbfFSTrj (ORCPT + 99 others); Wed, 19 Jun 2019 15:47:39 -0400 Received: from ale.deltatee.com ([207.54.116.67]:37110 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726447AbfFSTrj (ORCPT ); Wed, 19 Jun 2019 15:47:39 -0400 Received: from s01061831bf6ec98c.cg.shawcable.net ([68.147.80.180] helo=[192.168.6.132]) by ale.deltatee.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hdgYT-0003lA-LS; Wed, 19 Jun 2019 13:47:38 -0600 To: Kirill Smelkov , Julia Lawall , Sebastian Andrzej Siewior Cc: Kurt Schwemmer , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kbuild-all@01.org References: <20190619162713.GA19859@deco.navytux.spb.ru> From: Logan Gunthorpe Message-ID: <8ece80ad-d3c9-ac7b-29a5-b8c6f40851af@deltatee.com> Date: Wed, 19 Jun 2019 13:47:35 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <20190619162713.GA19859@deco.navytux.spb.ru> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 68.147.80.180 X-SA-Exim-Rcpt-To: kbuild-all@01.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, helgaas@kernel.org, kurt.schwemmer@microsemi.com, bigeasy@linutronix.de, julia.lawall@lip6.fr, kirr@nexedi.com 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=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE 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-06-19 10:27 a.m., Kirill Smelkov wrote: > Hi Julia, everyone. > > On Wed, Jun 19, 2019 at 12:28:47PM +0200, Julia Lawall wrote: >> Hi, >> >> Can you forward this patch to the people below if you think it is >> appropriate? >> 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: a3a1e895d4fa ("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 This is for the RT tree? The patch in the fixes tag isn't in upstream and I don't understand how this is related to that patch at all. It just looks like the RT tree hasn't picked up the patch which made this change in upstream. I feel like I've seen the change in this patch a bunch of times already and it appears to be correct in rc5 at least... Logan >> head: 31cc76d5590f5e60c2f26f029e40bc7d0441d93f >> commit: a3a1e895d4fa0508e11ac9107ace883a5b2a4d3b [171/305] pci/switchtec: Don't use completion's wait queue >> :::::: branch date: 6 days ago >> :::::: commit date: 6 days 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); >>