From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 55361C38A2D for ; Tue, 25 Oct 2022 14:41:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=NZfS/qSqw1UkqnhhYI59sDWIlSYgwxD86ecsi6U5cL8=; b=xfLFQj0OkNxhtjIDiFdOPVqZD6 tR/aX8QkFPrEKL7khuEtzx6+xbxY4bNIMl4cHI/874/P/W0E0MiDxk16OUXW1UC/C9g9IorOJU14y PndKG1AjlHKdAexo+VG3XTt+TgFsWo9hLDJ3sTFoAGJ63N7qK5685NFDINsUaA8mEgEawDxOqtqbY 7dVzbPN1u5sN7/JUUnrx1mz+Mv0iq5DcggZ9CQ5FRzHjA13C2ZRE9uXz+IfDk+d7kiQuRHat0VdUX rG035C3S9xdGN8NZcDahO0kI0AUufOT8b9iLI8nFfaI+KKR3+RBdkrM0aC2+8/KxkD3YwMR0iTEIU mYXo4HyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1onL70-005qA5-9N; Tue, 25 Oct 2022 14:41:02 +0000 Received: from [12.47.128.130] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1onL6M-005pn0-N0; Tue, 25 Oct 2022 14:40:22 +0000 From: Christoph Hellwig To: Jens Axboe , Keith Busch , Sagi Grimberg , Chao Leng Cc: Ming Lei , linux-nvme@lists.infradead.org, linux-block@vger.kernel.org Subject: [PATCH 07/17] nvme: remove the NVME_NS_DEAD check in nvme_validate_ns Date: Tue, 25 Oct 2022 07:40:10 -0700 Message-Id: <20221025144020.260458-8-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221025144020.260458-1-hch@lst.de> References: <20221025144020.260458-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org We never rescan namespaces after marking them dead, so this check is dead now. Signed-off-by: Christoph Hellwig --- drivers/nvme/host/core.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 2ec838e608509..99eabbe7fac98 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -4333,10 +4333,6 @@ static void nvme_validate_ns(struct nvme_ns *ns, struct nvme_ns_info *info) { int ret = NVME_SC_INVALID_NS | NVME_SC_DNR; - if (test_bit(NVME_NS_DEAD, &ns->flags)) - goto out; - - ret = NVME_SC_INVALID_NS | NVME_SC_DNR; if (!nvme_ns_ids_equal(&ns->head->ids, &info->ids)) { dev_err(ns->ctrl->device, "identifiers changed for nsid %d\n", ns->head->ns_id); -- 2.30.2