]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd3b86dfaa3f89663ba07edc3df6e7aa443807697
treeedba6f6d472ffd2b5103e9065d1fdf9256de3ef5
parent17f454834fac7106d76585cd5b835096a4689685
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