Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3777240pxv; Mon, 28 Jun 2021 12:36:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYnsxfMVaujjNhuzElOzkGbf4whEPZuZNEULg4z/UeBthpr29M8Y+7Q8ekRpcfkJlERVGG X-Received: by 2002:a5d:934d:: with SMTP id i13mr864612ioo.164.1624908972915; Mon, 28 Jun 2021 12:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624908972; cv=none; d=google.com; s=arc-20160816; b=o8wAOaCKjRpAAAkavZQ65/bZjIyCRfmOzjmFlT3/QgxNPwVglV7urNUbmBJXdJjndT 5iG9ooNaqJ4FmHH4TcrWfSmHmIzlv31Xtr3Mw1fg2oOpteu1j+5PKnh9UpsxfT3SfOwS b5m8DVIOiQGyyQ9N8M4tr2u8I88eDnAapl/1PzI82x4rzVDsm/sPmdnc+5Y3NfafNDMv ga4ilMk1j2u/E0kexzDyfm9z8U87/1VUc9Z1Wx0Nn+52o4rXXTtRujfGh+iqpmnxMt4G C9M0Sz09VoO9vce2X76dNZUoSGg0F1ZGP2IuDrrqWm9dnJvmcA/jfzf1sFUtQBa/gq5G fJ9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OAgMhIVm5qfYtj3o4399EaLvTpyFxeLbj8Cco1vxiFQ=; b=ozzl4KTV+AFehOeKWd6+VAO/g5wFROxDoKFTvUzC3D5CT/XimrXH0Ovb8pUcrrDhtl 1coXq3OKHEKTuJXpWzqHWarBvk8M78gywMWeGavXOa1r9gYFpGz491P/t3mmGmjjR2yc qR2uiZCo3ajSAIYVwyDF/SLv6PXrIi6WkxpxfCsoX+cuwAYSgvxm1v68HrM3oQlzvOlf O4bvtMtCYrNce+3HUg1o47njp0O/41nIid/gZlUbIiC3xqVZs1zwHYReGR2GdOpvoY/a GZyEglgx/G+Q6ZIVQ8X+WKlpoFgR6g2zrgK9P1tPzi4ICBECZgn1eG9iNk9ItuIB9nBR hJQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uiT6PdnJ; 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 p2si18325374iln.150.2021.06.28.12.35.59; Mon, 28 Jun 2021 12:36:12 -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=@kernel.org header.s=k20201202 header.b=uiT6PdnJ; 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 S235986AbhF1Oy0 (ORCPT + 99 others); Mon, 28 Jun 2021 10:54:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:43974 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235554AbhF1OkH (ORCPT ); Mon, 28 Jun 2021 10:40:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1FD9861C8B; Mon, 28 Jun 2021 14:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624890799; bh=tAdZA2+lzyNrpX6STAGFeXg7NBSwvYRhtKnJEukb594=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uiT6PdnJrPbDBp3EzOotAkBnQynyaviMJwmo36Bd49M48KFdUh7C/+xXUxlxhGFOI kVc3z3Xj6D+96MelTo0H834aJEuhx6veROWU2xGLfLfEOTH/axqpQwS3eHPK18h65q ETOj6z0gZKH8O0OByMZP7VhdQJm6t/hN961KeCyUaT/h+OGgegic+JMZPnBIY3BBb1 VMvkEe9OmYSSgrn0duitUwlu8bbwGZQozluEeysgVdHVA7oqsbxeZlXdc7PtAhFq4Z sL7fEZi185XexN5gZnWrVKFXk6cvE4pOTAe9D6L4ECcZSAt9J30HSp4kr1FhnHssdW mcH9J1UZNzVCw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hannes Reinecke , Chaitanya Kulkarni , Christoph Hellwig , Sasha Levin Subject: [PATCH 4.19 014/109] nvme-loop: clear NVME_LOOP_Q_LIVE when nvme_loop_configure_admin_queue() fails Date: Mon, 28 Jun 2021 10:31:30 -0400 Message-Id: <20210628143305.32978-15-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210628143305.32978-1-sashal@kernel.org> References: <20210628143305.32978-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.19.196-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.19.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.19.196-rc1 X-KernelTest-Deadline: 2021-06-30T14:32+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hannes Reinecke [ Upstream commit 1c5f8e882a05de5c011e8c3fbeceb0d1c590eb53 ] When the call to nvme_enable_ctrl() in nvme_loop_configure_admin_queue() fails the NVME_LOOP_Q_LIVE flag is not cleared. Signed-off-by: Hannes Reinecke Reviewed-by: Chaitanya Kulkarni Signed-off-by: Christoph Hellwig Signed-off-by: Sasha Levin --- drivers/nvme/target/loop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvme/target/loop.c b/drivers/nvme/target/loop.c index 7b6e44ed299a..dba0b0145f48 100644 --- a/drivers/nvme/target/loop.c +++ b/drivers/nvme/target/loop.c @@ -418,6 +418,7 @@ static int nvme_loop_configure_admin_queue(struct nvme_loop_ctrl *ctrl) return 0; out_cleanup_queue: + clear_bit(NVME_LOOP_Q_LIVE, &ctrl->queues[0].flags); blk_cleanup_queue(ctrl->ctrl.admin_q); out_free_tagset: blk_mq_free_tag_set(&ctrl->admin_tag_set); -- 2.30.2