]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:52 +0000 (13:34 +0100)
commit399b70e8eadc35fda6c37f560b129cff0bce359d
tree3e0e1e29a2717347895be54f53bdd780756fb61e
parentf2879398c295bc6016bc6854e94780ca694b3926
nvmet-fc: abort command when there is no binding

[ Upstream commit 3146345c2e9c2f661527054e402b0cfad80105a4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/target/fc.c