diff options
author | Matias Bjorling <m@bjorling.me> | 2016-03-03 15:06:39 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-03-18 18:10:38 -0700 |
commit | 9f867268436d799549909437e627e7cf279e1127 (patch) | |
tree | 8ebc862034aec40f4ecc59d65ea31ef3787cf27f /include | |
parent | da1e284919b0b99c5bf0618b6c98cbaf2c17e62e (diff) | |
download | linux-9f867268436d799549909437e627e7cf279e1127.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/lightnvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h index 0ee2c2c78ffd..cdcb2ccbefa8 100644 --- a/include/linux/lightnvm.h +++ b/include/linux/lightnvm.h @@ -242,6 +242,7 @@ struct nvm_rq { uint16_t nr_pages; uint16_t flags; + u64 ppa_status; /* ppa media status */ int error; }; |