nvme-fc: return non-zero status code when fails to create association
authorMichael Liang <mliang@purestorage.com>
Fri, 7 Jul 2023 21:21:56 +0000 (15:21 -0600)
committerKeith Busch <kbusch@kernel.org>
Wed, 12 Jul 2023 16:29:48 +0000 (09:29 -0700)
commit60e445bdfccbb90c1bc13a92e128e50ba4357b3c
tree1f23aa14c8dd5657acfee00881774313acb09ef1
parent733ba346d941d37e0814bac37b6a5c188ac3c9b2
nvme-fc: return non-zero status code when fails to create association

Return non-zero status code(-EIO) when needed, so re-connecting or
deleting controller will be triggered properly.

Signed-off-by: Michael Liang <mliang@purestorage.com>
Reviewed-by: Caleb Sander <csander@purestorage.com>
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/fc.c