Skip to content

Commit

Permalink
nvme-tcp: avoid open-coding nvme_tcp_teardown_admin_queue()
Browse files Browse the repository at this point in the history
nvme_tcp_setup_ctrl() has an open-coded version of
nvme_tcp_teardown_admin_queue().

Signed-off-by: Hannes Reinecke <[email protected]>
Tested-by: Mark O'Donovan <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
  • Loading branch information
hreinecke authored and keithbusch committed Nov 6, 2023
1 parent 6f66d04 commit fd1418d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/nvme/host/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2237,11 +2237,7 @@ static int nvme_tcp_setup_ctrl(struct nvme_ctrl *ctrl, bool new)
nvme_tcp_destroy_io_queues(ctrl, new);
}
destroy_admin:
nvme_quiesce_admin_queue(ctrl);
blk_sync_queue(ctrl->admin_q);
nvme_tcp_stop_queue(ctrl, 0);
nvme_cancel_admin_tagset(ctrl);
nvme_tcp_destroy_admin_queue(ctrl, new);
nvme_tcp_teardown_admin_queue(ctrl, false);
return ret;
}

Expand Down

0 comments on commit fd1418d

Please sign in to comment.