Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E836A44379 for ; Tue, 28 Nov 2023 21:08:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q+bavc+n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6AE2C433B9; Tue, 28 Nov 2023 21:08:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701205691; bh=ou5g1vYpCVBpRbsuoAPA3/wFNIfrgr0OMicmp/bNh8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q+bavc+nSrWU+EdUaCtphpTgDYhVaFsC3RNm2dsUW4FcWgcGcZYhghz8DhjkkfNpK gMtFPhZGCDO6kg1NGazqsh6LIuWJeBr+z42yT7r7OutNUCKF2aqXRIjfsMYsk0iaED sQJAolt7KpM8xR016mXF6nz55ismspOQp00v4jmjE8D/NxaqHeMVUxxbLyEWVXPTAj yWtueMO1/Ep5e5dD7CCI8wQ+4xBnzVud49qXWo0tQV/1UEv+l51pLiFogTNApgkNtm CRNQjaJ5CizOOEn1giZ+5+9ig+22luoEeua+fJqPf5tnZPExD6c/mYCD+rU2FUcdM8 hmNH+3BHYdHFw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Mark O'Donovan , Christoph Hellwig , Sagi Grimberg , Hannes Reinecke , Keith Busch , Sasha Levin , linux-nvme@lists.infradead.org Subject: [PATCH AUTOSEL 6.1 11/25] nvme-auth: unlock mutex in one place only Date: Tue, 28 Nov 2023 16:07:27 -0500 Message-ID: <20231128210750.875945-11-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231128210750.875945-1-sashal@kernel.org> References: <20231128210750.875945-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.64 Content-Transfer-Encoding: 8bit From: Mark O'Donovan [ Upstream commit 616add70bfdc0274a253e84fc78155c27aacde91 ] Signed-off-by: Mark O'Donovan Reviewed-by: Christoph Hellwig Reviewed-by: Sagi Grimberg Reviewed-by: Hannes Reinecke Signed-off-by: Keith Busch Signed-off-by: Sasha Levin --- drivers/nvme/host/auth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvme/host/auth.c b/drivers/nvme/host/auth.c index 9dfd3d0293054..7c9dfb420c464 100644 --- a/drivers/nvme/host/auth.c +++ b/drivers/nvme/host/auth.c @@ -758,6 +758,7 @@ static void nvme_queue_auth_work(struct work_struct *work) dev_dbg(ctrl->device, "%s: qid %d host response\n", __func__, chap->qid); ret = nvme_auth_dhchap_setup_host_response(ctrl, chap); + mutex_unlock(&ctrl->dhchap_auth_mutex); if (ret) { chap->error = ret; goto fail2; -- 2.42.0