Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2236247yba; Mon, 15 Apr 2019 07:41:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqznfhFPZgH48ilCYxH9OT0HAI5BQbxc6/p5q0LGLojRwerPxYk0EE0S+l8KDRzVx3V0jd7J X-Received: by 2002:a63:8548:: with SMTP id u69mr71580596pgd.85.1555339272622; Mon, 15 Apr 2019 07:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555339272; cv=none; d=google.com; s=arc-20160816; b=VTdERgYMMTwOZrXQ0R1C8lCRD4FpltrGdPwcaki92okK1UWnHU5Uy6HaiJX0LWy8HW mFgxpoa1FHaj7EjPURvF2NiwgyESgc7uQq4Zj8TTaTNP+d3V8VPqsnLz13YBPHVbCFjt kEKZoGSQTHlmhKCbbQTKNo3HafSXZmkqmRSWUqPTVrWhcSFzOHcfn/AcuWBewpCjtJBE kgz+caqwn/F0LGl5F/KGjIFjmH8LTKXVxBZiAVQMu5bIbnryQRLvQxGntFyGHVuX8KWz ttn9qsKdilfeTO0RSVNmR0rlVGqpVvlhfj1SQS4lHQ9vsFvvFhFadjYYhHzUqahDLLUX GbVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MMZqfmqWQIfo4xpRAH641AnZCbO9guBc18mOEaOHd6w=; b=c/K66Z/3x58rlk62PVTZ1ksPDikvHl6M60yws690ZOHBRNhlCATRcpMLVDynK/oijj SZgUABX5nLzgYox3CVaXBPpP7NQI3OCMjUKV6/DdgxnSX/fCoPjoyk+w2YscgOkUAfQr QPad2Fszmit+7r+8UMcyrbj3YfFRGkJw7hQ/TIdMqshPbqdxcSbofe+VkS4gmxk0I1Wt 7/f+XGpbJOOC6yzkRyfn5PuEQ9hDfc8rtMKFuuvJCO6R6nqgkFOb6Z70ap0EQ1Fk/sWy 5HshZkbMZdZdkPoMc1ZMPs8P6R1/oejNoTCVRbVa8DfglWbPjn+bBbXMd6we6KGZSG0X nD7A== 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 a5si45702394pff.39.2019.04.15.07.40.56; Mon, 15 Apr 2019 07:41:12 -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 S1727488AbfDOOjV (ORCPT + 99 others); Mon, 15 Apr 2019 10:39:21 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:46064 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727213AbfDOOjU (ORCPT ); Mon, 15 Apr 2019 10:39:20 -0400 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1hG2l7-0002Ch-L4; Mon, 15 Apr 2019 16:38:57 +0200 Date: Mon, 15 Apr 2019 16:38:57 +0200 From: Sebastian Andrzej Siewior To: Kirill Smelkov Cc: Julia Lawall , kbuild-all@01.org, Kurt Schwemmer , Logan Gunthorpe , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pci/switchtec: fix stream_open.cocci warnings (fwd) Message-ID: <20190415143857.kg2dbg3zxsxdktsi@linutronix.de> References: <20190413170056.GA11293@deco.navytux.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190413170056.GA11293@deco.navytux.spb.ru> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-04-13 17:00:59 [+0000], Kirill Smelkov wrote: > Hello everyone, Hi, > On Sat, Apr 13, 2019 at 06:50:57PM +0200, Julia Lawall wrote: > > Hello, > > > > Kirill will explain about this issue. > > pci/switchtec switching to stream_open is already queued to merge > window and it was acked by Logan Gunthorpe: > > https://lore.kernel.org/lkml/CAHk-=wgqgN5j1ZWnyVLqqoyU=CCWTYOko3MDyU8L_5e21KvHAg@mail.gmail.com/ > https://lab.nexedi.com/kirr/linux/commit/edaeb4101860 > > ( there are too many Cc's in that patch and email with it and reply-all to > it did not get into mailing list probably due to being considered as spam ) > > stream_open.cocci was issuing only warning for pci/switchtec, but after > 8a29a3bae2a2 ("pci/switchtec: Don't use completion's wait queue") they > started to use wait_even_* inside read method and, since > stream_open.cocci considers wait_event_* as blocking the warning became > error. Previously it was completions there, but I added support for wait > events only for simplicity. why is wait_event_interruptible() treated differently compared to wait_for_completion_interruptible()? > Kirill Sebastian