nvme-fc: remove nvme_fc_terminate_io()
authorJames Smart <james.smart@broadcom.com>
Fri, 23 Oct 2020 22:27:52 +0000 (15:27 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 27 Oct 2020 09:02:29 +0000 (10:02 +0100)
commitac9b820e713bdc8f340e7d65ca6a19b10b790f2a
tree700641eb41cd39ecb6e1eaf65b05e5ea71afcfa2
parent95ced8a2c72dd48167adc4981c3c465c491f2f02
nvme-fc: remove nvme_fc_terminate_io()

__nvme_fc_terminate_io() is now called by only 1 place, in reset_work.
Consoldate and move the functionality of terminate_io into reset_work.

In reset_work, rather than calling the create_association directly,
schedule the connect work element to do its thing. After scheduling,
flush the connect work element to continue with semantic of not
returning until connect has been attempted at least once.

Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c