From patchwork Fri Dec 20 09:50:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 13916418 X-Patchwork-Delegate: kw@linux.com 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 CE1161B394E for ; Fri, 20 Dec 2024 09:50:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734688253; cv=none; b=bzoB5VdNFbvmm+wRh5S/USN37INNcCX8GFnjoV4mxIjbYHj2AdkGsZ5eytPrVjLwdbsLUaDqof02o43QMol81rX8ddCxjxCZwZu+1cS+fl0mPSyoKUmK3c6yAOJSTwYIUFdQ5xf1bMcHAuLl+l19RTTEzRDv0+p2FgOFPCphUMo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734688253; c=relaxed/simple; bh=dZBG+7Cr8qW6187cdSEai55I2p24hR3EwtjXgP/1ONw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=n5Q3pv5EqcOoKGEgVcNLa+WNTrLth2k5yq7nx96EmUPPBM36TXduboB93otjEMZhXeHrP7OsjMWnjyTn12TyaMt7ZRfMvebbiI/a5aFNipRYVK17vZ5Xa9q7xCrXJ4zw5xZuS7/XhwAwYzdEyVsrfjOaz+rMCp2O0MiwtMCkJLM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R16L8g74; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R16L8g74" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86061C4CEDC; Fri, 20 Dec 2024 09:50:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734688253; bh=dZBG+7Cr8qW6187cdSEai55I2p24hR3EwtjXgP/1ONw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R16L8g74dHRMK4211FV984fyPJOdN+257lC0nBIYO5MtQYkcqE0EmE0w5nEXSPYOA c4t4rb6CEdJd1t6OpwnK8MiQpV++JKclVFUJrC/2hOeNRSpLZc02d+lE+LLJ+qMC7i 634qYauS8oqqEAOocSmf3LWHWpkMJLtIbS/mbGAIZNukTgwGUYYa3vRD1w4QXnoupI xKBuUcFVP+uZ1ykgXFNg3tRu5WvBHA9OB55HOOYSglrInjlrMfaNOmo5bSXMMpFv4a 0Ol0m7syB5vwHucuUsTWUlBSMjt4RhBcAK4DdZXfXqgshOaYCLPX7Hf+7BuX4ZE1k9 hQzA70c0vdcCg== From: Damien Le Moal To: linux-nvme@lists.infradead.org, Christoph Hellwig , Keith Busch , Sagi Grimberg , linux-pci@vger.kernel.org, Manivannan Sadhasivam , =?utf-8?q?Krzyszt?= =?utf-8?q?of_Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Bjorn Helgaas , Lorenzo Pieralisi Cc: Rick Wertenbroek , Niklas Cassel Subject: [PATCH v7 05/18] nvmet: Add drvdata field to struct nvmet_ctrl Date: Fri, 20 Dec 2024 18:50:55 +0900 Message-ID: <20241220095108.601914-6-dlemoal@kernel.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241220095108.601914-1-dlemoal@kernel.org> References: <20241220095108.601914-1-dlemoal@kernel.org> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Allow a target driver to attach private data to a target controller by adding the new field drvdata to struct nvmet_ctrl. Signed-off-by: Damien Le Moal Reviewed-by: Christoph Hellwig Tested-by: Rick Wertenbroek --- drivers/nvme/target/nvmet.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h index e68f1927339c..abcc1f3828b7 100644 --- a/drivers/nvme/target/nvmet.h +++ b/drivers/nvme/target/nvmet.h @@ -238,6 +238,8 @@ struct nvmet_ctrl { struct nvmet_subsys *subsys; struct nvmet_sq **sqs; + void *drvdata; + bool reset_tbkas; struct mutex lock;