]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme: target: allocate ana_state with port
authorRosen Penev <rosenp@gmail.com>
Mon, 8 Jun 2026 05:12:23 +0000 (22:12 -0700)
committerKeith Busch <kbusch@kernel.org>
Tue, 9 Jun 2026 18:18:03 +0000 (11:18 -0700)
commit4fd1f5f6a659886a4ef3a380b2a07207c94a7a24
treeb52b011f1f62a58201a38cb43b2881c17d0142b0
parent26acdaa357cded33a37f575cd5f6bae1033b3a5d
nvme: target: allocate ana_state with port

Use a flexible array member to remove one allocation. Simplifies code
slightly.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/configfs.c
drivers/nvme/target/nvmet.h