Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4346572pxb; Mon, 27 Sep 2021 15:08:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8DQgtUvL85b9dQCDHMwDzB1ubaScfv6r49EIB0+Rik0ZZ99ZVCH4CfqySp3IYCR9hr6aj X-Received: by 2002:a63:cf41:: with SMTP id b1mr1573632pgj.407.1632780517985; Mon, 27 Sep 2021 15:08:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632780517; cv=none; d=google.com; s=arc-20160816; b=JMCmK9RzSSV9/os/XpaiuC/aB2ATOvE+0xRZWDb4UegcIkzcl+Hr5Csu78wWbtoPm/ GyhxE1+Klj7APTfpT2gqmA8kq1oBMSF37n58Pm2d2ZOHWG2yvjukfYCaxOt7OazLlq7m dFApFylLu8ZYdl1QBxlOfsYjCw0pO/2DWUYOimkl08EN8t6qrud+Atp/PX850G5vIGw1 xOSUqL6EmVEu5kXWrNYhGSIEyDpb6h+lzX9oy8ueAE+XeXv9X94k3jV8thWTpoJZVqfC 1Tc6H7ZOiRXecEjNAXpZwLAsJLw3MeYx4nrpN2fhRG5huaYZUgfaAa0nJ/wJsezClnNQ CitA== 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=OH7OyuzUfCp9u8gErHhVg3xkJixK9lFHEReF7qenfiE=; b=J1MUnhj+qPHA+G9dVTMngAxGDWyjMXge3RnYssZzL8mPdqhzpWFvqiwGM48TmnpuuT sQ7zuw83j9YhP6snacaKBzOHXn2x2qU6Z3gS2evR1HItxT5rdeOXUnqEWD91ZBplvaNU ZjTEuErFe/j4aVFbH2I6o5zfoz0K1h0PDF/JCZmByFNq9lcWOnkLk8xQHDu6AZWx0c6o +kV7lDXor3O4Oux9KDusfEX54yGAOVthyl8nhcISsBIv5UZ6mt8XDpeQf25zEkjEfeSe XOK9MPvZFjCuJxqeznzh3H1qXb6C53cUb5YDjZ9jiCcfMJ2JWE6Pho4zFhClLcmXUuWR DDnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=A0tL2Fxo; 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 b5si859950pjl.11.2021.09.27.15.08.25; Mon, 27 Sep 2021 15:08:37 -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=A0tL2Fxo; 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 S238326AbhI0WH6 (ORCPT + 99 others); Mon, 27 Sep 2021 18:07:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237710AbhI0WHI (ORCPT ); Mon, 27 Sep 2021 18:07:08 -0400 Received: from bombadil.infradead.org (unknown [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E33AC061775; Mon, 27 Sep 2021 15:03:43 -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=OH7OyuzUfCp9u8gErHhVg3xkJixK9lFHEReF7qenfiE=; b=A0tL2FxoD+nA88GKKxQfIqQt+u 5joFEUlvjWS9Kh3iXG8l4EgdCQ3Z0LK/2K8kHPvo/ZxPzAtg6qAaeAU4hbWiZxGCQSYYKarC4MzFv ABBKywabOLyMwmttu/vwfgj/+bEe0EHZNqXM+vXlKt5RgclhVYpvqojBX3l6JD66O5K1V0r5fO9lm RnMtxAA61+RcCD87HuxYTxbEcDw+83IlZDKd93NMG7GqWA8fd8ovmBIcugoyY4oKq9o3yRsO1A1Bq 14YG+t2wiauf9xWt5GtrEB9pb1WwBP12aForrGI4Hv0oiHXXNUIshXv9DJ807gymWOb1ob9ziG85e 6PZUPRMQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUyij-004VaK-1s; Mon, 27 Sep 2021 22:03:33 +0000 From: Luis Chamberlain To: axboe@kernel.dk, hch@lst.de, efremov@linux.com, song@kernel.org, jejb@linux.ibm.com, martin.petersen@oracle.com, viro@zeniv.linux.org.uk, hare@suse.de, jack@suse.cz, ming.lei@redhat.com, tj@kernel.org Cc: linux-raid@vger.kernel.org, linux-scsi@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Luis Chamberlain Subject: [PATCH v2 0/2] block: 7th -- last batch of add_disk() error handling conversions Date: Mon, 27 Sep 2021 15:03:30 -0700 Message-Id: <20210927220332.1074647-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 the 7th and last set of driver conversions for add_disk() error handling. The entire set of pending changes can be found on my 20210927-for-axboe-add-disk-error-handling branch [0]. Changes on this v2: - rebased onto linux-next tag 20210927 - I modified the drivers to be sure to treat an existing block device on probe as a non-issue, and expanded the documentation to explain why we want to driver's probe routine to behave this way. [0] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/log/?h=20210927-for-axboe-add-disk-error-handling Luis Chamberlain (2): block: make __register_blkdev() return an error block: add __must_check for *add_disk*() callers block/bdev.c | 5 ++++- block/genhd.c | 27 ++++++++++++++++++--------- drivers/block/ataflop.c | 20 +++++++++++++++----- drivers/block/brd.c | 7 +++++-- drivers/block/floppy.c | 14 ++++++++++---- drivers/block/loop.c | 11 ++++++++--- drivers/md/md.c | 12 +++++++++--- drivers/scsi/sd.c | 3 ++- include/linux/genhd.h | 10 +++++----- 9 files changed, 76 insertions(+), 33 deletions(-) -- 2.30.2