nvmet-fc: abort command when there is no binding
authorDaniel Wagner <dwagner@suse.de>
Wed, 31 Jan 2024 08:51:09 +0000 (09:51 +0100)
committerKeith Busch <kbusch@kernel.org>
Thu, 1 Feb 2024 15:44:51 +0000 (07:44 -0800)
commit3146345c2e9c2f661527054e402b0cfad80105a4
tree1e7728eb22a8a5bda05ba7258d4d34a8526cff70
parent1c110588dd95d21782397ff3cbaa55820b4e1fad
nvmet-fc: abort command when there is no binding

When the target port has not active port binding, there is no point in
trying to process the command as it has to fail anyway. Instead adding
checks to all commands abort the command early.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/fc.c