]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit24b43aaa03446539728252b20f39987aae4324ab
tree700641eb41cd39ecb6e1eaf65b05e5ea71afcfa2
parent5e5430c36523d521e80b40df2e7efc8e6e89e6e8
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