]> git.baikalelectronics.ru Git - kernel.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)
commit25735545fb9e9b620c509b8eddd5a050b367527e
tree0ada4a3ef80d8a0a17bb65c9c6be0a6604269329
parent40828700bcc326fc3ef1d9204a18d1604cdd4ea6
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