Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3812548pxv; Mon, 28 Jun 2021 13:33:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyleIBVATFiBslnjEB67suJormRufdOSSXbJecMv0BwszPIRmvDx5EDXciiqGwYNrPczYq X-Received: by 2002:a92:d2c5:: with SMTP id w5mr6182215ilg.174.1624912435267; Mon, 28 Jun 2021 13:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624912435; cv=none; d=google.com; s=arc-20160816; b=QG3+71cXBofBwDTpp1QqgzfyoUjPgCcI2o7ZkrpYDPQOFG8mwmD6CvjBYNSzygcakQ t5D7jmAdfMgMJhaASH7KTHQbG9xzIu3Im27Ifrp4v0gW8cJykyBcXRkYKfa2Vr409kL5 uC2jlLuwjVRNWvB3QeXebeQ1HDYlZ9/hDHQ5c5Ua+igpYFNcIn9BCb7H6Tq7P4RUXHOB Ccm804MCGQPuNA477i0hGB6YcIEe1q8xWRDdSw7jzXm9NHyLrYweIZCB7aoglTKo0khc ll8VSQBBzMVXDuTU4I/4YrAt3G52OgUV79Eb8pGDe5bdBxO9gvhTP3ntxPK+SGnrHQVz Zvjg== 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=diG4tpNbBW9i50tn8LPLuLrbE7m5YRQ3/vdluJfJWJY=; b=MrOAZy0opek7JX0eL8chBATU0O5N9Dc/nChFWQt7zYVpsVsPJYXNzeN7JSKrq5An4m zPpzAhWybD935vNIvBh7/NycmI0m3WUZn/yLp5Pv2Yc/bPm9wluCql49sA5uZY6yuruP PQ/5pCJ+pwr/ZJXl+XS8R73l4sDklTVZvILgdL8PWwL26M0XYbSMJykJJu2D8cTRvv5z 4UPAkGzLoWlsZNgTShL7CSCTNnJlg6igl2bON+jOYrfMa+UUnA1cdBfd4Z5ml9bDZf7V 1wqedLA7e56FhJnpXWsYIp5AYJ+toMjJI7f9Y71E6+zJz2ShFwqUxMkaMEO5GGLohB0q 9J7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jnG18SHP; 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 n3si19684670ioh.98.2021.06.28.13.33.42; Mon, 28 Jun 2021 13:33:55 -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=jnG18SHP; 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 S235991AbhF1PIs (ORCPT + 99 others); Mon, 28 Jun 2021 11:08:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:55272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236363AbhF1OsC (ORCPT ); Mon, 28 Jun 2021 10:48:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B615561CAC; Mon, 28 Jun 2021 14:36:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624891000; bh=+AUXDUczjuSawvCTHOIWXEs386Lj8FbWpVxfUswMffo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jnG18SHPXzd1Wy+qGEZ3VDBiQlCRXx3GsegCITo1DTcp/bsBywHEfShJtbxMIYEwr gqglqj68EpuoFpSvihx8gvqnA1sb+nLsQUVMiFpv10xuOdK+kmw8QYKxzvoMebGMhF uIRC+3/nsWlZf+gal9VDmz9rvx6hsvYWAXli8/mixCg/Blz3m6CVEiv+W/RaGq48KD ggOrAY8m73wGXtek83yGKa4AYwVang9WLkVKR1Jbp2qyuq0qvaAztkpdR+FurAkvtN 2ST0OxPPHmElv2HMhuSyUajFNsRL/hfIFE3LKYbGKQohPCld16fIL3vJRyx4JYI4Z4 yOuSqdBcIzEDQ== 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.14 11/88] nvme-loop: clear NVME_LOOP_Q_LIVE when nvme_loop_configure_admin_queue() fails Date: Mon, 28 Jun 2021 10:35:11 -0400 Message-Id: <20210628143628.33342-12-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210628143628.33342-1-sashal@kernel.org> References: <20210628143628.33342-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.238-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.14.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.14.238-rc1 X-KernelTest-Deadline: 2021-06-30T14:36+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 5f33c3a9469b..963d8de932d1 100644 --- a/drivers/nvme/target/loop.c +++ b/drivers/nvme/target/loop.c @@ -430,6 +430,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