]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet-tcp: add an helper to free the cmd buffers
authorMaurizio Lombardi <mlombard@redhat.com>
Tue, 16 Nov 2021 15:49:19 +0000 (16:49 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 23 Nov 2021 16:19:25 +0000 (17:19 +0100)
commitb3a53a1919efb7f5aed04d826921d1d0ff0297a4
treefffb552a8e158da389a38afc745de9402b525341
parentac28b31ffa989f8ee5b4d63d68397786f12f8b86
nvmet-tcp: add an helper to free the cmd buffers

Makes the code easier to read and to debug.

Sets the freed pointers to NULL, it will be useful
when destroying the queues to understand if the commands'
buffers have been released already or not.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: John Meneghini <jmeneghi@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/tcp.c