diff options
author | James Smart <jsmart2021@gmail.com> | 2017-05-15 17:10:24 -0700 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-05-22 20:55:29 +0200 |
commit | e392e1f1f408fe8baf1046c970d05cbf1f0ec945 (patch) | |
tree | 47d6f4aa54a5e5191dc6505c0a1231dd410a89c4 /drivers/nvme | |
parent | 589ff7753bb54edd3ee4a9399ccc3ac48d9b22d7 (diff) | |
download | op-kernel-dev-e392e1f1f408fe8baf1046c970d05cbf1f0ec945.zip op-kernel-dev-e392e1f1f408fe8baf1046c970d05cbf1f0ec945.tar.gz |
nvme_fc: correct nvme status set on abort
correct nvme status set on abort. Patch that changed status to being actual
nvme status crossed in the night with the patch that added abort values.
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/fc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index e4817f9..775869c 100644 --- a/drivers/nvme/host/fc.c +++ b/drivers/nvme/host/fc.c @@ -1372,9 +1372,9 @@ done: complete_rq = __nvme_fc_fcpop_chk_teardowns(ctrl, op); if (!complete_rq) { if (unlikely(op->flags & FCOP_FLAGS_TERMIO)) { - status = cpu_to_le16(NVME_SC_ABORT_REQ); + status = cpu_to_le16(NVME_SC_ABORT_REQ << 1); if (blk_queue_dying(rq->q)) - status |= cpu_to_le16(NVME_SC_DNR); + status |= cpu_to_le16(NVME_SC_DNR << 1); } nvme_end_request(rq, status, result); } else |