From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.codeaurora.org ([198.145.29.96]:59464 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750962AbeBWF1y (ORCPT ); Fri, 23 Feb 2018 00:27:54 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Date: Fri, 23 Feb 2018 10:57:53 +0530 From: poza@codeaurora.org To: Christoph Hellwig Cc: Bjorn Helgaas , Philippe Ombredanne , Thomas Gleixner , Greg Kroah-Hartman , Kate Stewart , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Dongdong Liu , Keith Busch , Wei Zhang , Sinan Kaya , Timur Tabi Subject: Re: [PATCH v10 3/7] PCI/ERR: add mutex to synchronize recovery In-Reply-To: <20180222183602.GC6267@infradead.org> References: <1519315332-26852-1-git-send-email-poza@codeaurora.org> <1519315332-26852-4-git-send-email-poza@codeaurora.org> <20180222183602.GC6267@infradead.org> Message-ID: <2f79e5c643858e13f5ac9d6aef6e536c@codeaurora.org> Sender: linux-pci-owner@vger.kernel.org List-ID: On 2018-02-23 00:06, Christoph Hellwig wrote: > On Thu, Feb 22, 2018 at 09:32:08PM +0530, Oza Pawandeep wrote: >> This patch protects pci_do_recovery with mutex. > > Do we really want a global mutex for this and not one per root complex > at very least? This protects pcie_do_recovery, which is called by port service drivers. mainly aer and dpc as of now. so the association is not root complex agents instead service drivers who attempts to do link recovery. so I think we are good here.