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 18:16:10 +0000 (12:16 -0600)
commitd663b69ff378e4990e35e274ab0813c4641ab564
tree8226486c8dba90966ab5ee377c82319392c19a1e
parentb7819b9259185dcdcc81eb32182a4dc13d695738
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