Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6363853ybi; Wed, 31 Jul 2019 13:02:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYjk93hiPg4byRah0QYxQ0oT8z/SqMP9/MTezXC+hBMptxDhLgr8QcWgvTCg+4gVRyuyaf X-Received: by 2002:a17:90a:9bca:: with SMTP id b10mr4565018pjw.90.1564603320499; Wed, 31 Jul 2019 13:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564603320; cv=none; d=google.com; s=arc-20160816; b=PlO2nVFlU4v6BRJl2zKNjI4lvI2/a0jdNt2mc5poYojAvwAthcSMcdn2cxhIc22H8S s/PCMJ86fzyofS+nsnej/GnuYAwOXNYLm6f5dZvn3cuc4t8KUSXobpB0cPz9ETZh91HX BSNnFvjxfrj6eUJelYr10Pe74L8ufhciJ57S/NgdTzJD3Z8jx7n5OEpXHwepx0Tr6ubv SHIuaWmm6qhLg0wKx6oUb4moKYY5oZMQVha4aoFI9mO9+toZ5vtV/IYjns4HRQuYdAeP qKTsxOJjoazjU7cCBK2UbNZg3uCY3dfruswXUNRmHftgRayHF23RlyqFP4ZsnOBg/fLW PzzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rS31TGE+Mlwy7Maxt5cv0TA4vXxyACTIm226Er7Yz18=; b=IqLaxRSVQQyglfdBvh2teMQhMrNNaZ2Z4lJxmzpX7oYtfzdXgOgjwwq43gDQPUM9Hx 9UL+1MH1nWa3YojPEsA446LXX8QUlBVZPmgFuFqemDVe9JtZoFCT8pIjIJMDCGZAQH6Z 2lA0f7htAa9ez8d0MpuCHxDXha2u2T1g0w7/SVi7MGXxAxcOH8Gf21LaXEkiUce7EWb6 KgCnQjrdjP4z/LElVr9fsOqVCYNEqYdPP6u0ywQxtow2ZukuA3btSwzaziENHDQ+QDgC TMKhkey/89IEToN1aT4FSMsKmAW7NW+0zoZUYBsY7w32XoouLgYk8FyTtegjS8U/2CDH sVFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=vOibndjh; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k33si35281303pgi.563.2019.07.31.13.01.45; Wed, 31 Jul 2019 13:02:00 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=vOibndjh; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730925AbfGaTbT (ORCPT + 99 others); Wed, 31 Jul 2019 15:31:19 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:47058 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729092AbfGaTbT (ORCPT ); Wed, 31 Jul 2019 15:31:19 -0400 Received: by mail-ot1-f67.google.com with SMTP id z23so43070906ote.13 for ; Wed, 31 Jul 2019 12:31:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rS31TGE+Mlwy7Maxt5cv0TA4vXxyACTIm226Er7Yz18=; b=vOibndjhZQkynS4J/8fftBuH9T/2s/u1bVZrKWX86LTDWN++MLOqRy3Ep27/E6GVWU 604TSX1CLsvH+6a7GFfdrcz0bOlElTQnUJyHPDHxB5BaxRZ+Or5Negww2J2ObAexe2fi 3iM0qn+78IhWNMoJcDYY6HRxtIFDKeS2Zm1GUfXDIEf/Md7bDlfxseS5fZURC5fvAZs1 ML/qgtz4s2tidgqbYLMFqk6qfgVncCuyp1caNzW8MQHd+Q6M2mu5/5l2d/s01juOsmmH VZa/fznlq7uCb+9a+N25RlWsrL6UJdyEv4JPpIrFWi327pk39aN4ehcBSWC1JFdArBUj T9Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rS31TGE+Mlwy7Maxt5cv0TA4vXxyACTIm226Er7Yz18=; b=n8Md8vqEA51lQpuaxtfcTD8QTyEiaoQVq0RieubHoOf6mIZaB3M1UuqdPgWUselZpK Cxh25e9qdUyjcuslis2LUby5OiKPFAUhUug8b5G+bNplgX3MEmOELrSKD8Dn2S/mo0Pw 1SvS7kkb1YK+KoaHhLF78NVO+1h4tmXCy8rS51ItSXdEpo1X2Rh/Ys2e2btPBGy5bfCI encunSeZbl0nhnFkk2RM1hfwiQJM6zRXMefi4RYQTqZKTsuUJOymLhqENcNXvO8X3SZ4 +pNFCnZQwaKsvULYEREwuVUck5lCn/Uhxw5Bu2IDJSID8KQDCXf0YDXKqTnv5sSP3dCU xhkQ== X-Gm-Message-State: APjAAAXR8gBcFRcHiM4+ARNyJcvqjWzhJL1D8MSGAEu3uTE39PosqwBn aYfcSBMUw0zTUrrIDn/nc9JlJl7Izt4tdGEIj0x/qA== X-Received: by 2002:a9d:470d:: with SMTP id a13mr89782986otf.126.1564601478105; Wed, 31 Jul 2019 12:31:18 -0700 (PDT) MIME-Version: 1.0 References: <20190729190655.455345569@linuxfoundation.org> <20190729190721.610390670@linuxfoundation.org> <20190731181444.GA821@amd> In-Reply-To: <20190731181444.GA821@amd> From: Dan Williams Date: Wed, 31 Jul 2019 12:31:07 -0700 Message-ID: Subject: Re: [PATCH 4.19 112/113] libnvdimm/bus: Stop holding nvdimm_bus_list_mutex over __nd_ioctl() To: Pavel Machek Cc: Greg Kroah-Hartman , Linux Kernel Mailing List , stable , Vishal Verma , Jane Chu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 31, 2019 at 11:15 AM Pavel Machek wrote: > > On Mon 2019-07-29 21:23:19, Greg Kroah-Hartman wrote: > > From: Dan Williams > > > > commit b70d31d054ee3a6fc1034b9d7fc0ae1e481aa018 upstream. > > > > In preparation for fixing a deadlock between wait_for_bus_probe_idle() > > and the nvdimm_bus_list_mutex arrange for __nd_ioctl() without > > nvdimm_bus_list_mutex held. This also unifies the 'dimm' and 'bus' level > > ioctls into a common nd_ioctl() preamble implementation. > > Ok, so this is a preparation patch, not a fix... > > > Marked for -stable as it is a pre-requisite for a follow-on fix. > > ...but follow-on fixes are going to be applied for 5.2 but not > 4.19. So perhaps this one should not be in 4.19, either? I plan to follow up with a backport of the series for 4.19. I have no problem with v4.19 carrying this in the meantime, but if you want to kick it out and wait for the backport, that's fine too.