Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1589405pxb; Fri, 27 Aug 2021 12:19:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlVSWPjhMZErt9ewX5XyrLf0sqV8LYU84QbqOvQ21BzEGqbQHmAtZ6CrNidDsEPq8iRyFj X-Received: by 2002:a02:a18d:: with SMTP id n13mr9784195jah.120.1630091966129; Fri, 27 Aug 2021 12:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630091966; cv=none; d=google.com; s=arc-20160816; b=BSy5hTfsK3JGs/UMyPf9LoJISliZvRu4MZqQNTiFu0bhYom+5CZiEtgH2rQwJLxzyz iNnbZZieCn2i66XgX/4fqjvPqYxK+HsmNuJ2rHdGWd1N9XtIxQzfQXurfHYQQ+meMtXG fE99jbw4LrhZlnEgVCB5oZKmITU74TBMbxG6VhdEXyU1CkB78RQWpbyU8/eyxrK6IoBN 6mC0yJgTVXraErHdgnwuAoytrfHWLEff19NT4tbrHZrpvHIxITamHx99F5Wig6oW9fJH sLSPvhBy13QTPGDT4rym24WrCWR2P+nCRIS186TDXXJxta4W9pcYLtjLXV5t59LVAVaA OLOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+haEytmu63y3zWbWZRI3xhnFTvWyZ+JIjCoqN6FFLWY=; b=gwemfq5kC2Hj6qd2T8m7iSla3Y4GOiSyzgC2NhON+7UeabuzBibMWgdMLb1KBuGtLl zqYgg48FPFkcGhqqUMbOihuaeCf4b+XiCvuU9kxuq9avhlGiLAM2hvBqVapOgKNnPYq+ dTfTOzppbImyLOWQpaD4QtYSw4a7aYnOQ7jVz5hUr1S5R4MRMg5bdjr60Mzd1f9JiJQd +5FAXTJzgzlAhitW2ST01nBQDEirLQ7QA1cYBMw6W1gA5tTC12nqMwqWpfRxksmRR9Ls 9hPi65ESt8MIgqnr2jl0ZIu4KVFkRvPXmo+yBAzCpxNH5EyWrp9BvorQxiGAHB/MfVu5 /poA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=K2x3pPY1; 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 f7si8260783ila.78.2021.08.27.12.19.14; Fri, 27 Aug 2021 12:19:26 -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=K2x3pPY1; 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 S231150AbhH0TTR (ORCPT + 99 others); Fri, 27 Aug 2021 15:19:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230355AbhH0TTN (ORCPT ); Fri, 27 Aug 2021 15:19:13 -0400 Received: from bombadil.infradead.org (unknown [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEA25C0613CF; Fri, 27 Aug 2021 12:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=+haEytmu63y3zWbWZRI3xhnFTvWyZ+JIjCoqN6FFLWY=; b=K2x3pPY1MjMXFVBKWItW/EUmz3 oXTuPhFDfnmLiBjDzjBod7BEzvqr8kGcf5ytJZUzzsGuIUfqyRpJhcX80zL0lRzDZAS9amWITcPsM XVvA+RKxBCvgNSjP0X1szvA7ZlpF/3YjoBZ33+dmPNEx+hJ1CCVAsBc4AYNyAlx/cVlQ6F2TbPjmu 7C6yudMpOkpOSu4bkqcbhoJA70i0CfddYCZwj22VzG6stQYi8XFhm14+Dp+G+0cLOSi3k21VwV2Xi ADNTqx7RTt769nCMLIQRhz78hIfqIY3Fg7E30rRJeeLZOxfb1Xp0sNZYlrB6721r6oUAljCk750jK ihFnTrMQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mJhMg-00D5Ao-Ti; Fri, 27 Aug 2021 19:18:10 +0000 From: Luis Chamberlain To: axboe@kernel.dk, colyli@suse.de, kent.overstreet@gmail.com, kbusch@kernel.org, sagi@grimberg.me, vishal.l.verma@intel.com, dan.j.williams@intel.com, dave.jiang@intel.com, ira.weiny@intel.com, konrad.wilk@oracle.com, roger.pau@citrix.com, boris.ostrovsky@oracle.com, jgross@suse.com, sstabellini@kernel.org, minchan@kernel.org, ngupta@vflare.org, senozhatsky@chromium.org Cc: xen-devel@lists.xenproject.org, nvdimm@lists.linux.dev, linux-nvme@lists.infradead.org, linux-bcache@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Luis Chamberlain Subject: [PATCH 00/10] block: first batch of add_disk() error handling conversions Date: Fri, 27 Aug 2021 12:17:59 -0700 Message-Id: <20210827191809.3118103-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is my second batch of driver conversions to use add_disk() error handling. Please review and let me know if you spot any issues. This is part of a larger effort to covert all drivers over to use the new add_disk() error handling. The entire work can be found on my branch dedicated for this work [0] [0] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/log/?h=20210827-for-axboe-add-disk-error-handling-next-2nd Luis Chamberlain (10): block/brd: add error handling support for add_disk() bcache: add error handling support for add_disk() nvme-multipath: add error handling support for add_disk() nvdimm/btt: do not call del_gendisk() if not needed nvdimm/btt: use goto error labels on btt_blk_init() nvdimm/btt: add error handling support for add_disk() nvdimm/blk: avoid calling del_gendisk() on early failures nvdimm/blk: add error handling support for add_disk() xen-blkfront: add error handling support for add_disk() zram: add error handling support for add_disk() drivers/block/brd.c | 10 ++++++++-- drivers/block/xen-blkfront.c | 8 +++++++- drivers/block/zram/zram_drv.c | 6 +++++- drivers/md/bcache/super.c | 17 ++++++++++++----- drivers/nvdimm/blk.c | 21 +++++++++++++++------ drivers/nvdimm/btt.c | 24 +++++++++++++++--------- drivers/nvme/host/multipath.c | 10 +++++++--- 7 files changed, 69 insertions(+), 27 deletions(-) -- 2.30.2