Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2232113pxb; Sun, 31 Oct 2021 10:48:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4RnvhnD0WqynumFJeVfFbDaerenR+QJVybHe1ISafE+Gd6CiaXhBdQbjCH6doqYqkQbu7 X-Received: by 2002:a05:6e02:1b88:: with SMTP id h8mr16113489ili.149.1635702520267; Sun, 31 Oct 2021 10:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635702520; cv=none; d=google.com; s=arc-20160816; b=dPwC/VLL+zExMPEVlPWqeKOB/1Rc3+VWA3AzdCkh71Yx30EpswjM/lKZtJL2yL9x/A eeq28DiIlg33z2QfCuVHkSsdrc0ksJ/pRc4luQJ/mK67feH63+aXJhqgucnzHY7onWE/ YIDAx7iYjuTPxG4q0dfROq1u4Cm2yBrgVQMflqtywpx4MkWnp2NQP+7ZjlZyGFiiMIhA rDevq1lKCfa4x4XVFhCXKq/1cLFc3psnxL8YQJ0aUchQWWQ2nx9omhFrm/OTJoFL55Lf rwY5MX0D9E6b7YacXGaeDGYc6wv+CdTO1kUHEWqienBDP3uII6rEabw+cNcgH6B2sjhK otyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7MuoEHjjO8VeJaVuFed8XWzS0lEfBBHPNJTbN9pP/Kk=; b=ft46SQ8jQG2oJwZQ8oYsrbrZ5hwht6jjUnhk4HaEuCxWChCtUPaFgkxcImOaQJnA0v le0SgbedtjexZVQ/lsBgNAQlryptaWI3qqHSD7vm5MCTyVwyEBcdDGSlGfgj5KqDpt1s LZaPbB6nN8gXp72XITo+51fu6pqRjRmV9tY8CwoY6TrXF7BdNQo5FYW0UWsWilLr/pgz YgnI1/krNSTR7Ye6Ds/90Uv4hKcKQjhGa1Km1nmA82nb+ZZCYG+Wz+TMQpn8PMQC8IZ7 m6lRSP1ectgMa++XQ/39SgPrl63NfXl/QRk6wdB0w2dk69M3QwmjtpSv28jSWyy7jixS x73Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=4tOJMdKF; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l14si10520752jaj.70.2021.10.31.10.48.27; Sun, 31 Oct 2021 10:48:40 -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=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=4tOJMdKF; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229732AbhJaRuF (ORCPT + 99 others); Sun, 31 Oct 2021 13:50:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229838AbhJaRuF (ORCPT ); Sun, 31 Oct 2021 13:50:05 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37079C061714 for ; Sun, 31 Oct 2021 10:47:33 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id l10-20020a17090a4d4a00b001a678eed8abso1024525pjh.3 for ; Sun, 31 Oct 2021 10:47:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7MuoEHjjO8VeJaVuFed8XWzS0lEfBBHPNJTbN9pP/Kk=; b=4tOJMdKFSRsgNH+AUIYaqm2kjoYMRFX1rF2DJJ+SkN3TxFcC6WFZTlfZ/p19kQbT9K 3ucowaD3UjTRl1wxq0AhkO2grIrwJ1CUzZL9iaOW9qQruYwZiNTLyT8xPdcntcGZTnKO oHouSuIItcBdIuUQi3se1/cFTWoJaoIMfatJqvTJNtdVS5k8eQGd7+SN6PbVUPLsaGtZ l1ZNkN5xiSBdq4V2xHL4j3AS7JUzTTQy6aixWFwT8tGnH7btlFyMUA6OKqRZ3rOIuHsc 1ZLLqjh17RQWY85HyaOON7GqX1MfrrlXjw7ctSAkgQItKO1cowEaIPOliTgHjuC8pBHM Mnbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7MuoEHjjO8VeJaVuFed8XWzS0lEfBBHPNJTbN9pP/Kk=; b=z6ZP+ARAP5m8nCvBLTyagcjQO55eSXxn2zqRmMqFIPYFGpJQnTmPw4bAKKo0bg2QKG AoEdJQvOn18BkYI5q20Ls1GRKyiKhcBwwrBDaQot0itCb9InFdFBLwj8J6Z8pjI335zN YncEmX319PBhM6+FVDVHcamD6jzyE+uU4sJGaRhBH3DPw/wlb3DlcZHhC22UQGv4wtCO T8rjv64BLjDQome5JteQdeXL3Vh5quehqpFv3L3L9dHXu8hIkddoTuj0LzPvBFbyrVKW nPc6yy8Fo11hP1m2l/tdDUEABh7XO412J8TEQPp2PuyCl1KIWOI40bRsUfudfx1tJS+C rP0A== X-Gm-Message-State: AOAM532/LAdd7ZCNh+38f+CQuPjIwO9RpKdK7KrkdrOYOmszrr4dzMXj WZ+Ytzh1gIM1sg3ASn23QqK72tTHf651bMc2fbMfhQ== X-Received: by 2002:a17:902:8a97:b0:13e:6e77:af59 with SMTP id p23-20020a1709028a9700b0013e6e77af59mr20648644plo.4.1635702452583; Sun, 31 Oct 2021 10:47:32 -0700 (PDT) MIME-Version: 1.0 References: <20211015235219.2191207-1-mcgrof@kernel.org> <20211015235219.2191207-4-mcgrof@kernel.org> In-Reply-To: <20211015235219.2191207-4-mcgrof@kernel.org> From: Dan Williams Date: Sun, 31 Oct 2021 10:47:22 -0700 Message-ID: Subject: Re: [PATCH 03/13] nvdimm/btt: do not call del_gendisk() if not needed To: Luis Chamberlain 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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