nvme-fc: fix status code handling in nvme_fc_fcpio_done
authorChristoph Hellwig <hch@lst.de>
Thu, 20 Apr 2017 14:02:56 +0000 (16:02 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 20 Apr 2017 14:20:23 +0000 (08:20 -0600)
commit352b30f6150a50f6c22f0ad1b571ae4bf9992029
tree0ba2c86229775ea73626009cec2face25b4f0890
parent92f7a68edf58ab2a1b2debc137d2b41e9c82c870
nvme-fc: fix status code handling in nvme_fc_fcpio_done

nvme_complete_async_event expects the little endian status code
including the phase bit, and a new completion handler I plan to
introduce will do so as well.

Change the status variable into the little endian format with the
phase bit used in the NVMe CQE to fix / enable this.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/fc.c