]> 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)
commita166e5d7764f3b9d87b9ec96841f794e72c60961
tree700641eb41cd39ecb6e1eaf65b05e5ea71afcfa2
parent0854337a388b735961ddd9bf2e902695e1f0ea72
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