nvme: lightnvm: return ppa completion status
authorMatias Bjorling <m@bjorling.me>
Thu, 3 Mar 2016 14:06:39 +0000 (15:06 +0100)
committerJens Axboe <axboe@fb.com>
Sat, 19 Mar 2016 01:10:38 +0000 (18:10 -0700)
commit9f867268436d799549909437e627e7cf279e1127
tree8ebc862034aec40f4ecc59d65ea31ef3787cf27f
parentda1e284919b0b99c5bf0618b6c98cbaf2c17e62e
nvme: lightnvm: return ppa completion status

PPAs sent to device is separately acknowledge in a 64bit status
variable. The status is stored in DW0 and DW1 of the completion queue
entry. Store this status inside the nvm_rq for further processing.

This can later be used to implement retry techniques for failed writes
and reads.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/lightnvm.c
include/linux/lightnvm.h