Received: by 10.213.65.68 with SMTP id h4csp123387imn; Fri, 23 Mar 2018 00:29:23 -0700 (PDT) X-Google-Smtp-Source: AG47ELvVCsfblcxDvUL08W2z5mr79V9YIqrZARaBiuVwOF2kGSIySqfubyvbvXCoUMub9JGTNAUt X-Received: by 2002:a17:902:ba96:: with SMTP id k22-v6mr28579972pls.111.1521790163652; Fri, 23 Mar 2018 00:29:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521790163; cv=none; d=google.com; s=arc-20160816; b=yImg5j6YOTq3s9bmvlTjVWSFSRdsplhCks6lEPB/UNP6w8X319FYUKMm4mUvYkCL9I SvLYclegHKxHZkd66q1QAYNMYFfUur05hf8rr+eH8z97FLxldobBFZ7qEtFzHPXQQjI8 o9pha/66bRU0lkZQdaDszszHcG1vKwOHTgMaiVtFsfMNKAS9a11poru4JCYm2wzyKWxn HCm4RiW6TwjCFld7h6zk7HikAc64FLrE8GYxx3DhS46lqfaLJpMAOh62HY2UHYe3OhhM eM6HrrRyRxiHmsJ+jJXuygFkT2llAZ2U9t0Zg/Iylsn67u5OLzR1nScLPmsi7EqlAEv4 FeNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter :arc-authentication-results; bh=8NZqzWmfEnBe1UKnSyyJJR9lanoP4jZupsgq/rMsP8Y=; b=lcvBcquQ3treF3/66o4aCFGFumXd1nARPV3mVgrkFvOntMt7x6oINA8kj3Npcmv/qr dXesMzZWqFRCvWboN85I7FjSIQI/yKB8tneQBRI1QLEUQ65Fk6+3tMPCeNa6Cf86w2VM KCPv+UZoKKkY59XM9NCsNhyMjCmnrYii62QHA9+Prcoe1DxMyAqz4JfJQszeduxI6aqR IP/JftPKqiswfnhchzUt2dBBkkfudTtDeeu5qcymjKLZxPBIMM+2acgPHw8zW1mJPJdI tFNZydfjza1L+xT3Ri74vsLNe1Wr7dPIMe1iqWFiCNheWLetkEQSjYCfYgWd1vhSbais 2Tzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=C5fjGUZy; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kalray.eu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k75si6425773pfk.4.2018.03.23.00.29.08; Fri, 23 Mar 2018 00:29:23 -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; dkim=pass header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=C5fjGUZy; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kalray.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751665AbeCWH2L (ORCPT + 99 others); Fri, 23 Mar 2018 03:28:11 -0400 Received: from zimbra1.kalray.eu ([92.103.151.219]:59604 "EHLO zimbra1.kalray.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751288AbeCWH2J (ORCPT ); Fri, 23 Mar 2018 03:28:09 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra1.kalray.eu (Postfix) with ESMTP id 500CD280053; Fri, 23 Mar 2018 08:28:08 +0100 (CET) Received: from zimbra1.kalray.eu ([127.0.0.1]) by localhost (zimbra1.kalray.eu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Kq953xkB5JTU; Fri, 23 Mar 2018 08:28:08 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra1.kalray.eu (Postfix) with ESMTP id EE4AF2800BA; Fri, 23 Mar 2018 08:28:07 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra1.kalray.eu EE4AF2800BA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalray.eu; s=32AE1B44-9502-11E5-BA35-3734643DEF29; t=1521790088; bh=8NZqzWmfEnBe1UKnSyyJJR9lanoP4jZupsgq/rMsP8Y=; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; b=C5fjGUZy7Q/7duh7L5ZZzxcjtJxdhevTkPKt17A52EbS+SyLkMG0yZkoZ9Y1huwPg kbk4FvTRnZRK0WaEbYlOfcBZ0UACk1ZiFWbWoMwnlPGvC5vkzMuRvzYniCSxf8IsW7 w+furH5OP8ouCqnJH3T/FnfRuYBBTZkUpGJkh5rs= X-Virus-Scanned: amavisd-new at kalray.eu Received: from zimbra1.kalray.eu ([127.0.0.1]) by localhost (zimbra1.kalray.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id FGRspMCi3qOy; Fri, 23 Mar 2018 08:28:07 +0100 (CET) Received: from zimbra1.kalray.eu (localhost [127.0.0.1]) by zimbra1.kalray.eu (Postfix) with ESMTP id D3D5228009D; Fri, 23 Mar 2018 08:28:07 +0100 (CET) Date: Fri, 23 Mar 2018 08:28:07 +0100 (CET) From: Marta Rybczynska To: Bjorn Helgaas Cc: Keith Busch , Ming Lei , axboe@fb.com, hch@lst.de, sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, bhelgaas@google.com, linux-pci@vger.kernel.org, Pierre-Yves Kerbrat , Srinath Mannam Message-ID: <2116255963.5924726.1521790087788.JavaMail.zimbra@kalray.eu> In-Reply-To: <20180321215308.GH38649@bhelgaas-glaptop.roam.corp.google.com> References: <744877924.5841545.1521630049567.JavaMail.zimbra@kalray.eu> <20180321115037.GA26083@ming.t460p> <464125757.5843583.1521634231341.JavaMail.zimbra@kalray.eu> <20180321154807.GD22254@ming.t460p> <20180321160238.GF12909@localhost.localdomain> <1220434088.5871933.1521648656789.JavaMail.zimbra@kalray.eu> <20180321215308.GH38649@bhelgaas-glaptop.roam.corp.google.com> Subject: Re: [RFC PATCH] nvme: avoid race-conditions when enabling devices MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.40.201] X-Mailer: Zimbra 8.6.0_GA_1182 (ZimbraWebClient - FF53 (Linux)/8.6.0_GA_1182) Thread-Topic: nvme: avoid race-conditions when enabling devices Thread-Index: HEm8VKpOsMNARqgalq8SCLBWZnhtLg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Wed, Mar 21, 2018 at 05:10:56PM +0100, Marta Rybczynska wrote: >> >> The problem may happen also with other device doing its probe and >> nvme running its workqueue (and we probably have seen it in practice >> too). We were thinking about a lock in the pci generic code too, >> that's why I've put the linux-pci@ list in copy. > > Yes, this is a generic problem in the PCI core. We've tried to fix it > in the past but haven't figured it out yet. > > See 40f11adc7cd9 ("PCI: Avoid race while enabling upstream bridges") > and 0f50a49e3008 ("Revert "PCI: Avoid race while enabling upstream > bridges""). > > It's not trivial, but if you figure out a good way to fix this, I'd be > thrilled. > Bjorn, Srinath, are you aware of anyone working on an updated fix for this one? Marta