]> git.ipfire.org Git - thirdparty/linux.git/commit
nvme-tcp: move nvme_tcp_reclassify_socket()
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Sat, 30 May 2026 05:20:44 +0000 (14:20 +0900)
committerKeith Busch <kbusch@kernel.org>
Wed, 3 Jun 2026 09:43:54 +0000 (02:43 -0700)
commit2caaa52c1a440a3951fb098a148d716dada1ecc2
treee57162441232a06f63c24a67651bfed2df56572a
parent0ef4daa6534a510d61ea67c8ad9bb5097b0dd5f8
nvme-tcp: move nvme_tcp_reclassify_socket()

Move nvme_tcp_reclassify_socket() in tcp.c after the struct
nvme_tcp_queue definition. This is preparation for adding a reference
to struct nvme_tcp_queue in the function, which would otherwise cause a
compile failure due to the struct being defined after the function.

Move the entire CONFIG_DEBUG_LOCK_ALLOC block along with the function
to maintain the code organization.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/tcp.c