nvmet-fc: do not check for invalid target port in nvmet_fc_handle_fcp_rqst()
authorHannes Reinecke <hare@suse.de>
Tue, 25 May 2021 12:54:14 +0000 (14:54 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jun 2021 13:51:19 +0000 (15:51 +0200)
commit2a4a910aa4f0acc428dc8d10227c42e14ed21d10
treeedba6f6d472ffd2b5103e9065d1fdf9256de3ef5
parenteff4423ec0b03fedb8b7b420549ed8e424d246f1
nvmet-fc: do not check for invalid target port in nvmet_fc_handle_fcp_rqst()

When parsing a request in nvmet_fc_handle_fcp_rqst() we should not
check for invalid target ports; if we do the command is aborted
from the fcp layer, causing the host to assume a transport error.
Rather we should still forward this request to the nvmet layer, which
will then correctly fail the command with an appropriate error status.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/fc.c