]> www.infradead.org Git - nvme.git/commit
nvme: tcp: split controller bringup handling
authorKeith Busch <kbusch@kernel.org>
Tue, 4 Jun 2024 18:59:05 +0000 (11:59 -0700)
committerKeith Busch <kbusch@kernel.org>
Mon, 24 Jun 2024 19:53:42 +0000 (12:53 -0700)
commit10fd7fb676d71482b64bc61f5058b1011133f984
tree2518187df14e92673eac82573c3b22604fa7ebe6
parentb9ecbfa45516182cd062fecd286db7907ba84210
nvme: tcp: split controller bringup handling

Drivers must call nvme_uninit_ctrl after a successful nvme_init_ctrl.
Split the allocation side out to make the error handling boundary easier
to navigate. The nvme tcp driver's error handling had different returns
in the error goto label's, which harm readability.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/tcp.c