]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nvme_fc: Clean up host fcpio done status handling
authorJames Smart <jsmart2021@gmail.com>
Fri, 24 Mar 2017 03:41:27 +0000 (20:41 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 4 Apr 2017 15:48:23 +0000 (09:48 -0600)
commit62eeacb0e04f2aff7099a7765f386bb7ba53d5e2
tree0ada4a3ef80d8a0a17bb65c9c6be0a6604269329
parentc820ad4cdacbb272ec993738d1c7eb96f09ddcd5
nvme_fc: Clean up host fcpio done status handling

As Dan Carpenter pointed out: mixing 16-bit nvme status with 32-bit
error status from driver. Corrected comment on fcp request struct
status field, and converted done routine to explicitly set nvme status
codes for nvme status.

Signed-off-by: James Smart <james.smart@broadcom.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/fc.c
include/linux/nvme-fc-driver.h