Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nvmet-fcloop: remove use of FC-specific error codes

The FC-NVME transport loopback test module used the FC-specific error
codes in cases where it emulated a transport abort case. Instead of
using the FC-specific values, now use a generic value (NVME_SC_INTERNAL).

Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

James Smart and committed by
Jens Axboe
fc9608e8 29b3d26e

+1 -1
+1 -1
drivers/nvme/target/fcloop.c
··· 576 576 tfcp_req->aborted = true; 577 577 spin_unlock(&tfcp_req->reqlock); 578 578 579 - tfcp_req->status = NVME_SC_FC_TRANSPORT_ABORTED; 579 + tfcp_req->status = NVME_SC_INTERNAL; 580 580 581 581 /* 582 582 * nothing more to do. If io wasn't active, the transport should