lightnvm: pblk: check read lba on gc path
authorJavier González <javier@javigon.com>
Fri, 1 Jun 2018 13:04:17 +0000 (15:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Jun 2018 13:43:53 +0000 (07:43 -0600)
commit310df58229f69382c0c4c9e9003790b71b8a7a55
tree3b073778d28dfb4d1a8ecdbf6ca8ff0b1dc5e39e
parent1d8b33e05cea69a1b0b7f2f2a7c102b6583a984f
lightnvm: pblk: check read lba on gc path

Check that the lba stored in the LBA metadata is correct in the GC path
too. This requires a new helper function to check random reads in the
vector read.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-read.c