Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp839877ybv; Thu, 20 Feb 2020 08:12:19 -0800 (PST) X-Google-Smtp-Source: APXvYqx0twtHlJyeM6bUR1X/ezoMVvwiSwLFQyeEYiyiL2j4DQgwSEmkLQ6LzH892YVp3N40VR1L X-Received: by 2002:a9d:7482:: with SMTP id t2mr20799412otk.367.1582215138702; Thu, 20 Feb 2020 08:12:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582215138; cv=none; d=google.com; s=arc-20160816; b=tCyNjJdHdRLJAdOuk8wXrJhofaWNAwqHgmzAiEvWYKqWq26Bg1FUDP8D94H5nTfgz2 ilZkk7bilAU2yMsjphEnz7r2bt1ZHagpWqB5uqvrbuiDGjLAXRRfQ5w8KygIZM0Evyf0 /PssX/G8nbPlZ4kCTEstOZjqLhZ8QQExAPS690yegGRzRTw97TFFUHg3BCqmUmA3fsbW CmereXGX8Yqpquczy1lISG40F6Zf/sYn/u2vxVTohAxynnKzB9FcPD/2RF8VKBG9nPqw R21I/KDhJiJY+RXSxutRxqqnUBRHN0IjT5BG6ZIgAjH3QA2epxHukW4HB0rlP4bUmujM Ptwg== 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:dkim-signature; bh=bHtDzQhIdhcdIdYno5w+taoddNbeYvk75lFsyPhAujg=; b=kWFDIxWsjfyjFKRRQt/j1vDNfeeECyO9IZT/GrFzb/ZC7THuheaXm39lpUKLoxB2rr XNgvpVZpFxz8QyOhWoQ2Qr+UnlVeUsWITeg5U6LaTx166+AdQJdj9Jn4n1g9V1xiJiwk 8PotZWuPnb1UMxjFVkjrc/Gp8BWvsm/3daAB1DtQDUE5u9Z5MZFeDuE1bghMBqPtxuZt //y7lFThAl6QK2mVRrQ42CcAgVFYYfyFaC7tnZ6fRsEadikaaaVXgjw789Rm1yX/yO2h w+WTiLSpBI/mW6kC8JHVbUjKMdfzDr/qYHnZychPe+3au23sHVEjX59JGLoyq2wLWDTk BTNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tUpBRmCO; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l198si9523983oig.120.2020.02.20.08.12.02; Thu, 20 Feb 2020 08:12:18 -0800 (PST) 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=@kernel.org header.s=default header.b=tUpBRmCO; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728620AbgBTQLm (ORCPT + 99 others); Thu, 20 Feb 2020 11:11:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:60836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726871AbgBTQLm (ORCPT ); Thu, 20 Feb 2020 11:11:42 -0500 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 231F820659; Thu, 20 Feb 2020 16:11:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582215101; bh=OHPpGTXwOBTQ+2n7AONE/bLL7UPY/3XpZR9aEfGY5xM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tUpBRmCOj/opRcbrtI1aId22Ku/rmQkrAvKDjrHQ9UQnEOF9zU5nQveqius779w6P 3WK8hA9fioJujhP9U61mzeSVz9jctGiGohQnifWGjyldb4iPU+dc55b3nqVFGq8vJ2 FXfehNGI2V6JI/1SfZTFo8ZC/gNCOTUVi4swLx8s= Date: Thu, 20 Feb 2020 11:11:39 -0500 From: Sasha Levin To: Niklas Schnelle Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Peter Oberparleiter , Vasily Gorbik , linux-s390@vger.kernel.org Subject: Re: [PATCH AUTOSEL 5.5 094/542] s390/pci: Fix possible deadlock in recover_store() Message-ID: <20200220161139.GB1734@sasha-vm> References: <20200214154854.6746-1-sashal@kernel.org> <20200214154854.6746-94-sashal@kernel.org> <20200217093156.GB42010@tuxmaker.boeblingen.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200217093156.GB42010@tuxmaker.boeblingen.de.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 17, 2020 at 10:31:56AM +0100, Niklas Schnelle wrote: >On Fri, Feb 14, 2020 at 10:41:26AM -0500, Sasha Levin wrote: >> From: Niklas Schnelle >> >> [ Upstream commit 576c75e36c689bec6a940e807bae27291ab0c0de ] >> >> With zpci_disable() working, lockdep detected a potential deadlock >> (lockdep output at the end). >> >> The deadlock is between recovering a PCI function via the >> >> /sys/bus/pci/devices//recover >> >> attribute vs powering it off via >> >> /sys/bus/pci/slots//power. >> >> The fix is analogous to the changes in commit 0ee223b2e1f6 ("scsi: core: >> Avoid that SCSI device removal through sysfs triggers a deadlock") >> that fixed a potential deadlock on removing a SCSI device via sysfs. >[ ... snip ... ] > >While technically useful on its own this commit really should go together with >the following upstream commit: > >17cdec960cf776b20b1fb08c622221babe591d51 >("s390/pci: Recover handle in clp_set_pci_fn()") > >While the problem fixed here is independent, writing to the power/recover >attributes will often fail due to an inconsistent function handle without the >second commit. >In particular without it a PCI function in the error state can not be >recovered or powered off. > >I would recommend adding the second commit to the backports as well. I took that commit as well, thank you. -- Thanks, Sasha