Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4464316pxb; Tue, 2 Nov 2021 10:08:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+PMThgG3OlZPJp/IZ2Ox0BgSoHZsXnsHh74cdnRAjHbUZgnu5XWh4NYB9jBT87dN1vdfg X-Received: by 2002:a17:907:9810:: with SMTP id ji16mr26468882ejc.373.1635872926640; Tue, 02 Nov 2021 10:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635872926; cv=none; d=google.com; s=arc-20160816; b=Cq6axFdUPhX2DrHo5s+8xqJ79+wpWd+QnSee7LrL6hF1nrFHnSkD33kFq1vcu1vtHK MCKG337xpNRiPd8MfBj89i7oEQwmUKqNayIUf3kI+26tgB3st1XwI4svLTAOXnTXnrHV ns27yYbHyHV4mUWi7InXqQ9hvq73F3RPflfP0mQVaxhYgmG1Aaw/4hYWDjmWT3H3aYqs poDyaynyAeLm9/GtI3Q3yvgfbRSK7QZVNe/Eidr7/HbuDt977WeZuO4dju2JDrlbhhg6 Ra6S9ThLnXlevNWsbg2N2/x/ilKUJIRlkSL3wC55APGNCGdUaR/8/ifp/YGDCSuZgyRk yuzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3bBcvFcyfbMgkxTabHoDugt0QDDF2AsVik61xYhcvY8=; b=T5Dsudbk84HDPjkqjmsPJillnsYvnytu5WVn8kJxNl2YQ6AvGjdWl6yjzpV5HNhJJ2 f/JRzTajVmbM+PnyvfHgzBcyswyjpi9grwYwCpJhLDa/nPyrtw1Hh7m9FgHcw8qoQWGn +i67bj4+TqTp1/iB1qtzyUlo2j3xrWLpbkc49WhDyDhzYrsdpc62f829FdGxs3hlsmNC MdnOsV5xJhO/r/48lgArmh72klNx3z/38ucPYpDJEDh67bUPqt0A/xx+pkaXaOUFE8mF /gkuHPRijALt0Wye76vIKaUnEStY3TZ2bcpkwHXOcS4ESDfSF/D44tCuDR6E2K4CaETK iBbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=cU09DI26; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id h26si21685514edw.33.2021.11.02.10.08.14; Tue, 02 Nov 2021 10:08:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=cU09DI26; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234859AbhKBRG5 (ORCPT + 99 others); Tue, 2 Nov 2021 13:06:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234932AbhKBRGy (ORCPT ); Tue, 2 Nov 2021 13:06:54 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7C1AC0613B9; Tue, 2 Nov 2021 10:04:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=3bBcvFcyfbMgkxTabHoDugt0QDDF2AsVik61xYhcvY8=; b=cU09DI26n/HuOfXSGqvnoYXccm btgFjQftFTj8uFw/bdPpySJs8e+7RKCufouvPj8a9PRomwNJZ3mL7eaNJtneuS1VWToYH1yLqjBv3 m89b5NUiMX3cVF/rKxoTsV8LwGO8QEm/5XlTbBHx1DxbIwX0xAm8IdwOBHVoMxAqZi3cy2/MNriKS iDCYoYwhK8cO4awe/SWrQE/T8ddEIozAommDi/x5RAG4+JdgOojsx3aHaZEyweML/LrElyOIzTu2F 95JZDncYEgYlEMqo7AMW2+I/jpyu82tBawT5t7eMueYiE+khoi9NEjHbk0Y0jwGwUSoFnlgMokg/R ig+ZPcrg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mhxCQ-002RP3-6N; Tue, 02 Nov 2021 17:03:50 +0000 Date: Tue, 2 Nov 2021 10:03:50 -0700 From: Luis Chamberlain To: Dan Williams Cc: Jens Axboe , Geoff Levand , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Jim Paris , Minchan Kim , Nitin Gupta , senozhatsky@chromium.org, Richard Weinberger , miquel.raynal@bootlin.com, vigneshr@ti.com, Vishal L Verma , Dave Jiang , "Weiny, Ira" , Keith Busch , Christoph Hellwig , Sagi Grimberg , linux-block@vger.kernel.org, linuxppc-dev , linux-mtd@lists.infradead.org, Linux NVDIMM , linux-nvme@lists.infradead.org, Linux Kernel Mailing List Subject: Re: [PATCH 03/13] nvdimm/btt: do not call del_gendisk() if not needed Message-ID: References: <20211015235219.2191207-1-mcgrof@kernel.org> <20211015235219.2191207-4-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 31, 2021 at 10:47:22AM -0700, Dan Williams wrote: > On Fri, Oct 15, 2021 at 4:53 PM Luis Chamberlain wrote: > > > > We know we don't need del_gendisk() if we haven't added > > the disk, so just skip it. This should fix a bug on older > > kernels, as del_gendisk() became able to deal with > > disks not added only recently, after the patch titled > > "block: add flag for add_disk() completion notation". > > Perhaps put this in: > > commit $abbrev_commit ("block: add flag for add_disk() completion notation") > > ...format, but I can't seem to find that commit? Indeed, that patch got dropped and it would seem Christoph preferred a simpler approach with the new disk_live() commit 40b3a52ffc5bc3b5427d5d35b035cfb19d03fdd6 Author: Christoph Hellwig Date: Wed Aug 18 16:45:32 2021 +0200 block: add a sanity check for a live disk in del_gendisk > If you're touching the changelog how about one that clarifies the > impact and drops "we"? > "del_gendisk() is not required if the disk has not been added. On > kernels prior to commit $abbrev_commit ("block: add flag for > add_disk() completion notation") > it is mandatory to not call del_gendisk() if the underlying device has > not been through device_add()." > > Fixes: 41cd8b70c37a ("libnvdimm, btt: add support for blk integrity") > > With that you can add: > > Reviewed-by: Dan Williams You got it. Luis