]> www.infradead.org Git - nvme.git/commit
nvme: rdma: split controller bringup handling
authorKeith Busch <kbusch@kernel.org>
Tue, 4 Jun 2024 18:59:06 +0000 (11:59 -0700)
committerKeith Busch <kbusch@kernel.org>
Mon, 24 Jun 2024 19:53:42 +0000 (12:53 -0700)
commitea47c471a2cf34a0ab3cd1c5f13b3625454f1fdd
tree601a79ce1b35dc6acc6ede3bf32e876ed1cffbdc
parent10fd7fb676d71482b64bc61f5058b1011133f984
nvme: rdma: 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 rdma 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/rdma.c