From patchwork Sat Dec 14 06:06:42 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: 13908318 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 AB45927450 for ; Sat, 14 Dec 2024 06:07:27 +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=1734156447; cv=none; b=NJV7eVmjyNFsUYJAVITt8G0ggWHpoFqDMWmrMQRIpMbTRnRXbyIc0XLShBjLGt6OWCG2NbW72+S5XlIFuRdHoGdDTArBxkEiAnKdMlASUhho62KRPHBkVsAKYt2YBnJ0xD+INM65kHZFzn2PO9LdkyajdusSoDHdwsf+Cw3d/cc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734156447; c=relaxed/simple; bh=dZBG+7Cr8qW6187cdSEai55I2p24hR3EwtjXgP/1ONw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RBKRJQzrSFjgS72Px7KDfY1sC4HYnnfRrYen0CX3XdD/9LcQhRXKjJ7oFotkLO1sr9GISKUbHzFO8gAl6Pu5QsrLgugAR0NxwjgwH0yaNUN0GDKmrqdWZa79vXrJLHcw6mWICTKUGbHyivXYLQm4Rbd2GEQcuNz40t1+XaXQLP4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QsZImcU2; 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="QsZImcU2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A997EC4CED6; Sat, 14 Dec 2024 06:07:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734156447; bh=dZBG+7Cr8qW6187cdSEai55I2p24hR3EwtjXgP/1ONw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QsZImcU2CZCw/VhAjBlCqwBqvEYgFjBIXuN4GBggYoqrdTCHLZbOQs5knUniih1Py S6B+hLqdQxp+3L3XF8Nmv1fLZ2cOgvvTNTNd8VzsIrqwcZuyeShJ5Q9Gligyo9zM1A u9Y+0nFFvZd9w3Gj73HU58nHcGGB46asGHl/qTIdW2bPNfg3H92i5RMKX1rxsFmmLr bBGU8Rt+JxISydJzIhAKGKPx89er1iE99gzdqYXvmZOOwPRlFHwoCDHYuiOdutdQYg y+BvMb/Uo1cttMtKFyEwGHqkfLrlMWw/3Cjd/qcC8ycg/Vlvv3pwHEWCj/be6exPJe lToFu+M8Bme1Q== 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 v5 05/18] nvmet: Add drvdata field to struct nvmet_ctrl Date: Sat, 14 Dec 2024 15:06:42 +0900 Message-ID: <20241214060655.166325-6-dlemoal@kernel.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241214060655.166325-1-dlemoal@kernel.org> References: <20241214060655.166325-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;