From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com ([134.134.136.126]:15720 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933190AbeFUMGF (ORCPT ); Thu, 21 Jun 2018 08:06:05 -0400 Date: Thu, 21 Jun 2018 15:06:00 +0300 From: Mika Westerberg To: Lukas Wunner Cc: Bjorn Helgaas , "Rafael J. Wysocki" , Ashok Raj , Keith Busch , Yinghai Lu , Sinan Kaya , linux-pci@vger.kernel.org, Rajat Jain , Alex Williamson Subject: Re: [PATCH 23/32] PCI: pciehp: Avoid slot access during reset Message-ID: <20180621120600.GY2558@lahna.fi.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-pci-owner@vger.kernel.org List-ID: On Sat, Jun 16, 2018 at 09:25:00PM +0200, Lukas Wunner wrote: > struct controller { > struct mutex ctrl_lock; > struct pcie_device *pcie; > + struct rw_semaphore reset_lock; Is there any particular reason why you can't use a regular mutex here?