]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
lightnvm: do not assume sequential lun alloc.
authorJavier González <jg@lightnvm.io>
Fri, 6 May 2016 18:03:15 +0000 (20:03 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 6 May 2016 18:51:10 +0000 (12:51 -0600)
commitcca87bc9d359f1a03ac34ca095343d1bfa2e6b15
treedcfc7dacb3b56ae987aa764008add0f499ff4ce9
parentb86d8d363ece8fb9a7ec7e951c7f041f47f0f552
lightnvm: do not assume sequential lun alloc.

When doing GC, rrpc calculates the physical LUN to which the rrpc block
belongs too. This calculation is based on the assumption that LUNs are
assigned sequentially to the LUN list. Use the reference to the LUN
instead. This saves us the calculation and allows us to align LUNs in a
different manner to, for example, take advantage of devide parallelism.

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