diff options
author | Igor Konopko <igor.j.konopko@intel.com> | 2018-12-11 20:16:22 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-12-11 12:22:34 -0700 |
commit | dd439496dfbcfee1eb1e0d14984f98acb2b84c16 (patch) | |
tree | b9d47cb1cf6dc8a6787ca0fbe063d0337d9662cf /drivers/lightnvm/pblk.h | |
parent | 42bd0384d77ef7552954056928018f5cfa91a013 (diff) | |
download | linux-dd439496dfbcfee1eb1e0d14984f98acb2b84c16.tar.gz linux-dd439496dfbcfee1eb1e0d14984f98acb2b84c16.tar.bz2 linux-dd439496dfbcfee1eb1e0d14984f98acb2b84c16.zip |
lightnvm: pblk: move lba list to partial read context
Currently DMA allocated memory is reused on partial read
for lba_list_mem and lba_list_media arrays. In preparation
for dynamic DMA pool sizes we need to move this arrays
into pblk_pr_ctx structures.
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Igor Konopko <igor.j.konopko@intel.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm/pblk.h')
-rw-r--r-- | drivers/lightnvm/pblk.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h index e5b88a25d4d6..0e9d3960ac4c 100644 --- a/drivers/lightnvm/pblk.h +++ b/drivers/lightnvm/pblk.h @@ -132,6 +132,8 @@ struct pblk_pr_ctx { unsigned int bio_init_idx; void *ppa_ptr; dma_addr_t dma_ppa_list; + __le64 lba_list_mem[NVM_MAX_VLBA]; + __le64 lba_list_media[NVM_MAX_VLBA]; }; /* Pad context */ |