]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: fix lun offset calculation for mark blk
authorMatias Bjørling <m@bjorling.me>
Thu, 7 Jul 2016 07:54:21 +0000 (09:54 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 7 Jul 2016 14:51:52 +0000 (08:51 -0600)
commit178a8427f45cea59aee54a729f80b538bb1d4a8c
tree29394f10806cb19858cdae66d87f7509fdd2805d
parentaba7f495899a6559b5fda06107c20cd13ddfae51
lightnvm: fix lun offset calculation for mark blk

The gen_mark_blk_bad function marks the wrong block when a block is on
a different channel. Fix the index calculation, so that it updates the
correct block.

Reported-by: Javier Gonzalez <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/gennvm.c